We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the value of a service parameter starts with the sign "$" then that value will be taken from the environment variable.
For example servicetitle parameter value will be taken from STITLE environment variable:
servicetitle
STITLE
{ "@type": "org.cricketmsf.config.ConfigSet", "services": [ { "@type": "org.cricketmsf.config.Configuration", "id": "MyService", "service": "com.my.Service", "properties": { "servicetitle": "$STITLE", ... }, "ports": [ .... ] } }
In case of configuration of adapters, support for this mechanism can be implemented in the adapter's loadProperties method: E.g.:
public void loadProperties(HashMap<String, String> properties, String adapterName) { super.loadProperties(properties, adapterName); token = properties.getOrDefault("token", ""); if (token.startsWith("$")) { token = System.getenv(token.substring(1)); } }
The text was updated successfully, but these errors were encountered:
service configuration using environment variables #229
b905a46
No branches or pull requests
If the value of a service parameter starts with the sign "$" then that value will be taken from the environment variable.
For example
servicetitle
parameter value will be taken fromSTITLE
environment variable:In case of configuration of adapters, support for this mechanism can be implemented in the adapter's loadProperties method:
E.g.:
The text was updated successfully, but these errors were encountered: