Open netwarex opened 5 years ago
Which setting can't be configured via env?
@Jotschi eg.: oauth/keycloak settings. but generally, it could be a good addition to be able to override settings or a local configuration also can be a good alternative, like mesh.local.yml
Docker deployments should use the compose override file to introduce custom env settings which should be used locally. I don't recommend to use yml files when using a docker setup.
Gentics Mesh Version, operating system, or hardware.
Operating System
JVM
Problem
Some Mesh settings can be overridden by environment variables, but not all of them, which can be useful in many scenarios (eg.: in Docker environment).
Reproducer
https://getmesh.io/docs/administration-guide/#_environment_variables
Expected behaviour and actual behaviour
I would recommend to use an enviroment variable pattern to override all settings keys, and use an exception for list for settings which should not be overridden (so these environment variables can be discarded).
Example:
mesh.yml:
Environment variable pattern (prefixed with MESH and seperated with underscores (_) on uppercased settings levels):