How do I provide an array/list of values as an environment variable to typesafe/lightbend config?
application.conf
default-buckets = [
10,
30,
100,
300,
1000,
3000,
10000,
30000,
100000
]
default-buckets = [${?DEFAULT_BUCKETS}]
So, I'd like to pass something like this as an environment variable to be able to override the defaults:
DEFAULT_BUCKETS=1000,3000
However, I'm getting the following error:
com.typesafe.config.ConfigException$WrongType: env variables: buckets.default-buckets has type list of STRING rather than list of NUMBER
Is this possible without having to have my application code deal with it by e.g. calling split(',')
?