Search Knowledge Base by Keyword
Your Environment Variables
Cloud Environment Variables
Environment variables are used to store the values of all the frequently used parameters provided to a software program. This makes your application more flexible and portable.
We will see in this article the most common use of variables so you can make quick adjustments to specific values that are utilized multiple times in your application code.
You can also configure your application through the set of predefined values suhc as: enable/disable features, change behavior, etc using variables. We supplement most of the certified software stacks with a number of default variables, which can be used by developers to help with application hosting.
Default Environment Variables
You can view below a full list of default variables used within UKhost4u PaaS containers.
PLEASE NOTE: Variables marked with “+” in the Editable column can be freely adjusted to customize your container. Herewith, a restart is required to apply changes.
However, we do not recommended to adjust variables marked with “–” as such an action won’t apply any actual changes to the container; however, it may break some internal logic.
There are a number of options that can be used with all of the UKHost4u-managed stacks:
Variable Name | Editable* | Description |
---|---|---|
{SOFTWARE}_VERSION | – | A version of the specified software (stack, engine, template, module, etc). |
CLONE_ON_SCALE | + | Defines if new nodes upon horizontal scaling should be clones of a layer’s master (true) or created from scratch (false). |
DOCKER_EXPOSED_PORT | – | Lists ports from the EXPOSE directive of the image’s dockerfile, which were opened via container firewall during the environment creation. |
JELASTIC_EXPOSE | + | Manages the auto-redirect functionality state with an ability to define the required port manually. |
JELASTIC_PORTS | + (before env creation) | Specifies custom ports, which should be opened in firewall during container creation. |
MASTER_HOST | – | A short hostname for a master node within a layer. |
MASTER_ID | – | A unique node identifier of a master node within a layer. |
MASTER_IP | – | An internal IP address of a master node within a layer. |
ON_ENV_INSTALL | + (before env creation) | A script (or link to it) to be executed after environment creation. |
PATH | – | A default shell variable, with a list of paths to directories with executable programs. |
STACK_NAME | – | The name of the current stack. |
STACK_PATH | – | The home directory of the stack. |
STACK_USER | – | The name of the stack’s default user. |
Need help?
Contact our support team available 24/7 using our website or raise a ticket directly into our system.