Open jpswinski opened 3 years ago
ORCHESTRATOR is also now used for the ip address of the orchestrator
I think the best solution is to continue to use environment variables when necessary, but to limit them to only be read from the start up Lua script. For instance, only server.lua should read environment variables, after which all configuration is managed from Lua.
SlideRule uses a couple environment variables for configuration due to the fact that they are needed at package initialization which occurs before the lua interpreter is up and running.
The current list is:
IPV4 - for the local host ip address used in events SLIDERULE_S3_ENDPOINT - for S3Lib s3 endpoint SLIDERULE_S3_REGION - for S3Lib s3 region