I am looking for a simple way of passing the play.filters.hosts.allowed parameter to a production play server started via a docker container.
Any advice on best practices to do this?
https://www.playframework.com/documentation/2.6.x/ProductionConfiguration shows how to override configuration parameters by using system properties and environment variables. But it is unclear how/whether this mechanism can be used for a list-valued configuration such as play.filter.hosts.allowed.
Is it necessary in this case to create a special prod.conf file or is there a simpler way to specify the production play.filters.hosts.allowed configuration?
Hi.
Apart from using these parameters, is it possible to change the allowed hosts entries programmatically with Scala/Java (e.g. based on entries in the database)?
All the best
jens