...
To allow more flexible environment variable management, repeated environmentVariables will also overwrite extraEnvVariables from the previous configuration settings. Additionally, if there are environment variables with the same names in both environmentVariables and extraEnvVariables, the values from extraEnvVariables will take priority and be used.
Examples:
| Example | Final environment variables set in the Session Server | Note |
|---|---|---|
| ["env3=3"] | environmentVariables |
| from /etc/rialto-soc.json overriden both |
environmentVariables and | environmentVariables and extraEnvVariables from /etc/sky/rialto-config.json | |
/etc/sky/rialto-config.json: environmentVariables = ["env1=1"], extraEnvVariables = ["env2=2"] | ["env1=1", "env4=4"] |
extraEnvVariables from extraEnvVariables from the /opt/persistent/sky/rialto-config-overrides.json and environmentVariables from /etc/sky/rialto-config.json are combined | ||
/etc/sky/rialto-config.json: environmentVariables = ["env1=1", "env2=2"]extraEnvVariables = ["env1=3"] | ["env1=3", "env2=2"] | env1 is defined in both environmentVariables and extraEnvVariables, the value from extraEnvVariables will be used. |