...
Environmental variables: This method is useful for containerized deployments as environmental variables can be defined in the container configuration.
Example for environmental variables in a docker command:
Code Block |
---|
docker run
[..]
-e TIA_LICENSE_PATH=/application/config/tialic
-e WEBAPP_SECURITY_AUTH_BASIC_USERNAME=admin
-e WEBAPP_SECURITY_AUTH_BASIC_PASSWORD=\$2a\$10\$JKRQvv.bCNjlyLoBqORAq.79SlwpD8h9nWoo9ss35vt2Pi11KJ2B.
[..] |
In
context.xml
file: This is useful for a war-file deployment in a web application server. This file can be found (or if not create it) in the<webappserver>/WEB-INF/<web context>/META-INF
directory.
Example for context.xml:
Code Block |
---|
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Context> <Context> <Parameter name="logging.level.com.software.kgs" value="info" override="true" /> <Parameter name="logging.config" value="C:/Program Files/tomcat/webapps/coreoftia/META-INF/my.log4j2.xml" override="true" /> </Context> |
The parameter names are written in lowercase strings and reflect the hierarchy of application modules. For that reason, the “.” (dot character) is used to separate the levels in the hierarchy.
...