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 NameEditable*Description
{SOFTWARE}_VERSIONA 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_PORTLists 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_HOSTA short hostname for a master node within a layer.
MASTER_IDA unique node identifier of a master node within a layer.
MASTER_IPAn 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.
PATHA default shell variable, with a list of paths to directories with executable programs.
STACK_NAMEThe name of the current stack.
STACK_PATHThe home directory of the stack.
STACK_USERThe 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.

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.