Hello,
I'm using Guice for dependency injection in Play 2.5.x. I am trying to configure play.http.forwarded.trustedProxies using comma-separated values supplied by an env variable. However, lightbend Config does not allow comma-separated values from env variables to be interpreted as List[String], and so I can not get Play to recognize the set of comma-separated values I supply.
To solve this, I would like to get access to the typesafe Configuration object before Play initializes with it, and perform the env var parsing myself so that Play can interpret the value in Config as a List[String]. However, I can't find a good lifecycle hook for making this change so that it actually gets used by ForwardedHeaderHandler.
Any recommendations on how to accomplish this?
Cheers,
Erem