Default Environment Variables
Default Environment Variables
Environment variables store frequently used runtime values and help make applications more portable, flexible, and easier to configure.
Variables can be used to adjust values referenced throughout application code or to control predefined software-stack behaviour. Most platform-certified stacks include default variables for common hosting and runtime settings.
Default Environment Variables List
| Variable Name | Editable | Stacks | Description |
|---|---|---|---|
{SOFTWARE}_VERSION | – | All | Version of the specified stack, engine, template, module, or other software component. |
ADMIN_USER | – | GlassFish/Payara, WildFly, Couchbase, LiteSpeed Web Server, LiteSpeed ADC, LLSMP | Administrator login for the management console. |
ADMINPANEL_ENABLED (PHPMYADMIN_ENABLED) | + | Databases, LLSMP, LEMP | Enables the admin panel with true or 1; other values disable it. Restart required. The value in brackets is deprecated. |
APP_FILE | + | Node.js | Main Node.js application file to launch. |
APP_MODULE | + | Python Engine | Application entry point in module:attribute format; _AUTO_ enables autodetection. |
APP_NAME | + | .NET Core | Target application folder or specific .dll file. |
ASPNETCORE_URLS | + | .NET Core | Configures the URL used by .NET Core services. |
AUTO_OLD_HEAP | + | Node.js | Enables or disables memory auto-configuration for the maximum old heap size. |
CACHE_ENABLED | + | LLSMP, LEMP | Enables or disables the built-in Memcached service. Restart required. |
CACHE_MEM_LIMIT | + | LLSMP, LEMP | RAM share reserved for Memcached; 10% by default. |
CLONE_ON_SCALE | + | All | Controls whether horizontally added nodes clone the master or are created from scratch. |
CP_MEM_LIMIT | + | LLSMP, LEMP | RAM share reserved for the application server; 50% by default. |
DAS | – | GlassFish/Payara | Indicates whether the layer contains a DAS node. |
DB_MEM_LIMIT | + | LLSMP, LEMP | RAM share reserved for MariaDB; 40% by default. |
DEFAULT_CLUSTER | + | LiteSpeed ADC | Selects HTTP, AJP, FCGI, or LSAPI proxying; can be disabled. |
DOCKER_EXPOSED_PORT | – | All | Lists ports from the image EXPOSE instruction opened by the container firewall. |
FULL_GC_AGENT_DEBUG | + | Java | Enables or disables Java GC process debug logging. |
FULL_GC_PERIOD | + | Java | Interval between full GC calls; 900 seconds by default. |
G1PERIODIC_GC_INTERVAL | + for OpenJDK 12/13 | Java | G1 periodic collection interval in milliseconds; 0 disables it. |
G1PERIODIC_GC_SYS_LOAD_THRESHOLD | + for OpenJDK 12/13 | Java | Allows G1 periodic collection below the configured one-minute system load. |
GC_SYS_LOAD_THRESHOLD_RATE | + for OpenJDK 12/13 | Java | Multiplier for G1PeriodicGCSystemLoadThreshold; 0.3 by default. |
GEM_HOME | + | Ruby | Locations where gems can be found; should include GEM_PATH. |
GEM_PATH | – | Ruby | Default gem installation path. |
GMS_LISTENER_PORT | – | GlassFish/Payara | Group Management Service listener port. |
GO_BUILD_OPTIONS | + | Go | Flags and options used to build the Go application. |
GO_RUN | + | Go | Executable binary name; deployment tries to detect it when omitted. |
GO_RUN_OPTIONS | + | Go | Flags and options used to run the Go application. |
GOPATH | – | Go | Go application deployment folder. |
HAZELCAST_CONFIG | + | GlassFish/Payara | Path to the Hazelcast configuration file. |
HOME_DIR | – | GlassFish/Payara, WildFly, Spring Boot, Java Engine, Node.js, Shared Storage, Python Engine | Container home directory. |
HOT_DEPLOY | + | Tomcat, TomEE | Enables or disables deployment without application-server restart. |
IRBRC | – | Ruby | Path to the IRB configuration file. |
JAVA_ARGS | + | Java | Custom arguments passed to the application main function. |
JAVA_HOME | – | Java, Maven | Java runtime installation directory. |
JAVA_OPTS_CONFFILE | – | Java, Maven | Path to variables.conf. |
JBOSS_HOME | – | WildFly | WildFly home directory. |
JELASTIC_AUTOCONFIG | + | LiteSpeed Web Server, LLSMP, LiteSpeed ADC, MySQL, MariaDB, Percona | Enables or disables smart auto-configuration based on RAM and CPU. |
JELASTIC_EXPOSE | + | All | Controls automatic redirection and can define a specific port. |
JELASTIC_MEMORY_AUTOCONFIG | + | WildFly | Enables or disables WildFly memory auto-configuration. |
JELASTIC_PRIORITY_PORTS | + | GlassFish/Payara | Sets the GlassFish HTTP listener port. |
LAUNCH_JBOSS_IN_BACKGROUND | + | WildFly | Controls background startup of the application server. |
LSWS_MAX_CHILDREN | + | LLSMP, LiteSpeed Web Server | Overrides the maximum child-process limit. |
MASTER_HOST | – | All | Short hostname of the layer master node. |
MASTER_ID | – | All | Unique identifier of the layer master node. |
MASTER_IP | – | All | Internal IP address of the layer master node. |
MAVEN_DEPLOY_ARTIFACT | + | Maven | Artifact selected for deployment. |
MAVEN_OPTS | + | Maven | JVM options used to start Maven. |
MAVEN_RUN_ARGS | + | Maven | Custom arguments for the application build. |
MAX_OOM_REDUCE_CYCLES | + | MySQL, MariaDB, Percona | Maximum buffer-pool reduction cycles after OOM restarts; 5 by default. |
MY_RUBY_HOME | – | Ruby | Ruby engine directory. |
NODE_ENV | – | Node.js | Application environment such as development, staging, production, or testing. |
NODE_OPTIONS | + | Node.js | Node.js runtime V8 options. |
NVM_DIR | – | Node.js | NVM installation path. |
ON_ENV_INSTALL | + before creation | All | Script or URL executed after environment creation. |
OOM_ADJUSTMENT | + | MySQL, MariaDB, Percona | Buffer-pool reduction after each OOM restart; 10% by default. |
OOM_DETECTION_DELTA | + | MySQL, MariaDB, Percona | Log-analysis interval after restart; 2 seconds by default. |
OPEN_INBOUND_PORTS (JELASTIC_PORTS) | + before creation | All | Custom firewall ports opened during container creation. |
PACKAGE_MANAGER | + | Node.js | Package manager used to install dependencies, such as npm or yarn. |
PACKAGE_MANAGER_OPTS | + | Node.js | Additional package-manager options. |
PATH | – | All | Default shell search path for executable programs. |
PHP_MAX_EXECUTION_TIME | + | PHP | Maximum script execution time; 300 seconds by default. |
PHP_MEMORY_LIMIT | + | PHP | Maximum memory per script; 25% by default, -1 for unlimited. |
PHPFPM_MAX_CHILDREN | + | NGINX PHP | PHP-FPM child worker count; normally based on available CPU cores. |
PORT | + | Python | Bind port; redirects TCP 80 or 443 to the selected port. |
PORT_4848_TCP_PORT | – | GlassFish/Payara | Administration console port. |
PROCESS_MANAGER | + | Node.js, Python Engine | Selects the process manager, such as npm, pm2, forever, uvicorn, or gunicorn. |
PROCESS_MANAGER_FILE | – | Node.js | File containing process-manager startup options. |
PROXY_READ_TIMEOUT | + | NGINX balancer, NGINX PHP | Backend read timeout in seconds. |
PSWD_FILE | – | GlassFish/Payara | File containing the administrator password. |
REDIRECT_EXCLUDE_PORTS | + | Node.js | Ports excluded from automatic redirection. |
REDIS_COMMANDER | + | Redis | Enables or disables Redis Commander. |
REDIS_ENABLED | + | PHP | Deprecated; use CACHE_ENABLED. Controls Redis object caching. |
REDIS_SENTINEL | + | Redis | Enables or disables Redis Sentinel. |
ROOT_DIR | – | Node.js, Python Engine | Application deployment directory. |
RUN_OPTION | + | .NET Core | Additional dotnet run options. |
SERVER_WEBROOT | – | LLSMP, LiteSpeed Web Server | Application deployment directory. |
STACK_NAME | – | All | Current stack name. |
STACK_PATH | – | All | Stack home directory. |
STACK_USER | – | All | Default stack user. |
STANDALONE_MODE_CONFIG | + | WildFly | Configuration file for standalone WildFly. |
TCP_BALANCING | + | HAProxy | Enables or disables proxying to TCP backends. |
UPDATE_PACKAGES_ON_RESTART | + | Node.js | Controls automatic package installation after service restart. |
UPSTREAM_KEEPALIVE | + | NGINX balancer | Value for the NGINX upstream keepalive directive. |
VERT_SCALING | + | Java | Enables or disables the default Java GC agent. |
WAF | + | LLSMP, LiteSpeed Web Server | Enables or disables the LiteSpeed Web Application Firewall. |
WEB_ROOT | – | Go | Deployed application path. |
WEBROOT | – | PHP, Tomcat/TomEE, GlassFish/Payara, Python Engine | Application deployment directory. |
WORKER_PROCESSES | + | NGINX balancer | NGINX worker-process count or autodetection mode. |
WORKERS | + | Python Engine | Number of worker processes; nproc uses the CPU count. |
WP_PROTECT | + | LLSMP, LiteSpeed Web Server, LiteSpeed ADC | WordPress brute-force protection action. |
WP_PROTECT_LIMIT | + | LLSMP, LiteSpeed Web Server, LiteSpeed ADC | WordPress brute-force protection limit; 10 by default. |
Editable and Read-Only Variables
“+” variables: These values can be adjusted to customise the container. A service or container restart is generally required to apply the change.
“-” variables: These are informational or platform-managed values. Changing them usually does not apply a real container change and can break internal platform logic.
Common Variables for Managed Stacks
{SOFTWARE}_VERSION— current software version.CLONE_ON_SCALE— controls whether scaled nodes clone the master.DOCKER_EXPOSED_PORT— lists image ports opened by the firewall.JELASTIC_EXPOSE— manages automatic redirection and port selection.MASTER_HOST,MASTER_ID, andMASTER_IP— identify the layer master.ON_ENV_INSTALL— runs a script after environment creation.OPEN_INBOUND_PORTS— opens custom firewall ports during creation.PATH— default executable search path.STACK_NAME,STACK_PATH, andSTACK_USER— describe the current managed stack.
What’s next?
- Custom Environment Variables
- Java Options and Arguments
- Container Variables
- Environment Configuration
