Skip to content
Jagoan Cloud Docs
  • Solutions
    • Server Ujian Online
    • Scalable WordPress
  • Products
    • Jagoan Cloud PaaS
      • Pricing
    • Cloud Backup
    • VPS Windows
    • Business Mail
    • SSL Certificate
  • Login App
Popular Search settingsshphpdockerdomain

Rapor Digital Madrasah

  • Cara Instalasi RDM

Panduan Dasar

  • Cara Memasang SSL di Jagoan Cloud
  • Mengubah domain Jagoan Cloud ke Domain Sendiri
  • Cara Menambahkan IP Public

Moodle

  • Cara Login ke Server Moodle di Jagoan Cloud
  • Cara Login ke Aplikasi Moodle di Jagoan Cloud
  • Cara Menggunakan Domain Pribadi untuk Aplikasi Moodle

Quick Start

  • Getting Started
  • Dashboard Guide
  • Welcome Tutorial
  • Software Stack Versions

Platform Overview

  • What is Platform-as-a-Service
  • Concept and Terminology
  • What are System Containers
  • What are Application Containers
  • Isolated Containers
  • What is Auto-Clustering
  • Cloudlet

Containers

  • Container Types
  • Container Image Requirements
  • Connect to Custom Container
  • Custom Container SSH Access
  • Private Registry Inside PaaS
  • Building Custom Containers

Environment Management

  • HTTP Headers
  • Clone Environment

Application Settings

  • Configuration File Manager
  • Managing Timezone Settings

Development Tools

  • FTP/FTPS Support

Account and Pricing

  • Account Registration
  • Account Types
  • Account Statuses
  • Account Password Reset
  • Quotas System
  • Two Factor Authentication
  • Personal Access Token
  • Upgrade and Refill Account
  • Pricing Model Overview

Architecture Overview

  • Cluster Overview
  • Cluster Orchestrator

Container Deployment

  • Certified Containers Deployment
  • Custom Containers Deployment
  • Docker Engine Deployment

Container Redeploy

  • Redeploy Overview
  • Preserve Data

Container Configuration

  • Configuration Tools
  • Container Environment Variables
  • Container Linking
  • Container Volumes
  • Container Ports
  • Container Run Configuration

Environment Variables

  • Java Options and Arguments
  • Default Environment Variables
  • Custom Environment Variables

Environment Groups

  • Overview
  • Group Creation
  • Navigation Between Groups
  • Group Management
  • Environment Isolations

Scaling and Clustering

  • Automatic Vertical Scaling
  • Horizontal Scaling
  • Automatic Horizontal Scaling
  • Data Synchronization
  • File Synchronization in Cluster
  • Auto-Clustering of Instances

Built-In Monitoring

  • Log Files
  • Statistics
  • Load Alerts

SSH

  • Generate SSH Key
  • Add SSH Key
  • SSH Access

Resource Charging

  • Pricing FAQ
  • Charged Resources
  • Monitoring Consumed Resource

Kubernetes

  • GitLab CI/CD Integration
  • Cluster Automated Upgrade
  • Public IP for Access to Kubernetes
  • Traefik v2 Ingress Controller

Kubernetes Cluster

  • Kubernetes Overview
  • System Requirements
  • Cluster Installation
  • Cluster Versions

Managing Kubernetes

  • Cluster Access
  • Access Controll
  • Cluster Troubleshooting
  • Cluster Upgrade
  • Velero Backup

Kubernetes Scalability

  • Vertical Scalling
  • Horizontal Scalling

Application Deployment

  • Helm Integration
  • YAML Deployments
  • Internal Networking
  • Exposing Services
  • Creating Ingresses

Persistent Data

  • Volume Provisioner
  • Persistent Volume Claim
  • Custom Storage

Domain Name Management

  • Swap Domain
  • Multiple Domain for PHP
  • Container DNS Hostnames

External Access to Applications

  • Shared Load Balancer
  • Public IP
  • Container Firewall
  • Endpoints

Traffic Distributor

  • Traffic Distributor Overview
  • Routing Methods
  • Traffic Distributor Installation
  • Traffic Distributor Integration
  • Use Case

SSL

  • Secure Socket Layer
  • Built-In SSL
  • Custom SSL
  • Custom SSL via SLB

Scheduling Configuration

  • Setting Up Cronjob
View Categories
  • Docs
  • Panduan Penggunaan Layanan & Platform Jagoan Cloud
  • Jagoan Cloud PaaS
  • Panduan Dasar
  • Environment Management
  • Environment Variables
  • Default Environment Variables

Default Environment Variables

20 min read

Environment variable digunakan untuk menyimpan nilai dari parameter-parameter yang sering dipakai, yang diberikan ke program saat dijalankan. Penggunaan variabel semacam ini bikin aplikasi Kamu jadi lebih fleksibel dan gampang dipindahkan ke tempat lain (portabel).

Penggunaan variabel yang paling umum adalah untuk mempermudah mengubah nilai-nilai tertentu yang sering digunakan di banyak bagian kode. Selain itu, variabel juga sering dipakai untuk mengatur perilaku aplikasi lewat nilai-nilai yang sudah ditentukan sebelumnya — misalnya untuk mengaktifkan/menonaktifkan fitur, atau mengubah cara aplikasi bekerja. Di platform ini, sebagian besar stack aplikasi resmi (certified stacks) sudah dilengkapi dengan variabel default yang bisa langsung kamu manfaatkan untuk mempermudah proses hosting aplikasi.

Default Environment Variables List #

Berikut ini merupakan daftar lengkap variabel default yang digunakan dalam platform container di Jagoan Cloud.

Variable Name Editable* Stacks Description
{SOFTWARE}_VERSION – All A version of the specified software (stack, engine, template, module, etc.).
ADMIN_USER – GlassFish (Payara), WildFly, Couchbase, LiteSpeed Web Server, LiteSpeed ADC, LLSMP A login of the admin user for the administration console.
ADMINPANEL_ENABLED (PHPMYADMIN_ENABLED) + Databases, LLSMP, LEMP The “true” and “1” values allow usage of the admin panel, while any other disables it. Restart is required to apply changes. The value in brackets is deprecated but can still be used on the MySQL and MariaDB databases.
APP_FILE + Node.js The main Node.js application file to be launched.
APP_NAME + .NET Core Points to the particular folder (if there are multiple applications in a single repository) or runs a specific .dll file in your project.
ASPNETCORE_URLS + .NET Core Configures .NET Core services to work with the specified URL.
AUTO_OLD_HEAP + Node.js Turns on/off (true/false) the platform memory autoconfiguration – sets the maximum size of an old heap based on the amount of memory on the container.
CACHE_MEM_LIMIT + PHP Defines the portion of RAM, which should be reserved for the built-in Redis cache server, 10% of container total RAM by default.
CLONE_ON_SCALE + All Defines if new nodes upon horizontal scaling should be clones of a layer’s master (true) or created from scratch (false).
CP_MEM_LIMIT + LLSMP, LEMP Defines the portion of RAM, which should be reserved for the application server, 50% of container total RAM by default.
DAS – GlassFish (Payara) Shows if there is a DAS node (required to configure cluster) for the current layer.
DB_MEM_LIMIT + LLSMP, LEMP Defines the portion of RAM, which should be reserved for the built-in MariaDB database server, 40% of container total RAM by default.
DEFAULT_CLUSTER + LiteSpeed ADC Selects the load balancing type for requests’ proxying (HTTP, AJP, FCGI, LSAPI). This logic can be disabled (0, disabled, false).
DOCKER_EXPOSED_PORT – All Lists ports from the EXPOSE directive of the image’s dockerfile, which were opened via container firewall during the environment creation.
FULL_GC_AGENT_DEBUG + Java Enables (true) or disables (false) the debug mode to track the Java GC processes in the logs.
FULL_GC_PERIOD + Java Sets the interval (in seconds) between the full GC calls; 900 by default, i.e. 15 minutes.
G1PERIODIC_GC_INTERVAL + (for openJDK 12/13 only) Java A frequency of the G1 Periodic Collection in milliseconds (G1PeriodicGCInterval – 15 minutes by default); set as 0 to disable.
G1PERIODIC_GC_SYS_LOAD_THRESHOLD + (for openJDK 12/13 only) Java Allows G1 Periodic Collection execution, if the average one-minute system load is below the set value. This condition is ignored if set as zero. Is equal to the {CPU_cores_number} * {GC_SYS_LOAD_THRESHOLD_RATE} by default.
GC_SYS_LOAD_THRESHOLD_RATE + (for openJDK 12/13 only) Java Custom multiplier to flexibly adjust the G1PeriodicGCSystemLoadThreshold value (0.3 by default).
GEM_HOME + Ruby Locations (can be several) where gems can be found (should include GEM_PATH).
GEM_PATH – Ruby A location where gems will be installed by default.
GMS_LISTENER_PORT – GlassFish (Payara) A port used by the group management service (GMS).
GO_BUILD_OPTIONS + Go Options and flags that should be used for the Go application building.
GO_RUN + Go Sets the name of the executable binary file. If not specified, the deployment script will try to locate one based on the project name.
GO_RUN_OPTIONS + Go Options and flags that should be used to run the Go application.
GOPATH – Go Defines the Go application deployment folder.
HAZELCAST_CONFIG + GlassFish (Payara) Sets a path to the hazelcast configuration file.
HOME_DIR – GlassFish (Payara), WildFly, Spring Boot, Java Engine, Node.js, Shared Storage Container home directory.
HOT_DEPLOY + Tomcat, TomEE Enables (true/enabled/1) or disables (false/disabled/0, by default) hot deploy (i.e. deploy without restart) for application server.
IRBRC – Ruby A path to the IRB configuration file.
JAVA_ARGS + Java Allows passing some custom arguments to the main function of your application.
JAVA_HOME – Java, Maven Points to the directory where the Java runtime environment (JRE) is installed.
JAVA_OPTS_CONFFILE – Java, Maven Path to the variables.conf file.
JBOSS_HOME – WildFly WildFly home directory.
JELASTIC_AUTOCONFIG + LiteSpeed Web Server, LLSMP, LiteSpeed ADC, MySQL, MariaDB, Percona Enables (true/enabled/1, by default) or disables (false/disabled/0) smart auto-configuration based on the allocated RAM and number of CPU cores.
JELASTIC_EXPOSE + All Manages the auto-redirect functionality state with an ability to define the required port manually.
JELASTIC_MEMORY_AUTOCONFIG + WildFly Enables (true) or disables (false) memory auto-configuration for WildFly.
JELASTIC_PRIORITY_PORTS + GlassFish (Payara) Sets a GlassFish HTTP listener port.
LAUNCH_JBOSS_
IN_BACKGROUND
+ WildFly Enables (true) or disables (false) start of an application server in the background mode.
LSWS_MAX_CHILDREN + LLSMP, LiteSpeed Web Server Redefines the maximum children process limit for the server. The variable is hidden by default as the platform sets this value equal to the number of available CPU cores (usually ensures the best operability). You need to manually add this variable and restart the server to redefine the value.
MASTER_HOST – All A short hostname for a master node within a layer.
MASTER_ID – All A unique node identifier of a master node within a layer.
MASTER_IP – All An internal IP address of a master node within a layer.
MAVEN_DEPLOY_ARTIFACT + Maven Defines an artifact to be deployed (can be redefined for a particular project).
MAVEN_OPTS + Maven Sets parameters to be used to start up the JVM running Maven and can be used to supply additional global options.
MAVEN_RUN_ARGS + Maven Allows passing some custom arguments for the application build (can be redefined for a particular project).
MAX_OOM_REDUCE_CYCLES + MySQL, MariaDB, Percona Configures a maximum number of cycles for innodb_buffer_pool_size reduction after OOM-caused restart (5 times by default).
MY_RUBY_HOME – Ruby A path to the directory where the Ruby engine is located.
NODE_ENV – Node.js Specifies the environment in which an application is running (e.g. development, staging, production, testing, etc.).
NODE_OPTIONS + Node.js Variable for specifying the Node.js runtime v8 options.
NVM_DIR – Node.js A path to the NVM installation location.
ON_ENV_INSTALL + (before env creation) All A script (or link to it) to be executed after environment creation.
OOM_ADJUSTMENT + MySQL, MariaDB, Percona Defines a value in %, MB, GB (10% by default) that the current innodb_buffer_pool_size parameter should be reduced after each OOM-caused restart.
OOM_DETECTION_DELTA + MySQL, MariaDB, Percona Sets a period (2 seconds by default) for the platform to analyze logs after each service restart to decide if it was caused by OOM killer.
OPEN_INBOUND_PORTS (JELASTIC_PORTS) + (before env creation) All Specifies custom ports, which should be opened in the firewall during container creation.
PACKAGE_MANAGER + Node.js A variable that contains the name of a package manager for installing the javascript packages (npm or yarn).
PACKAGE_MANAGER_OPTS + Node.js Additional options for the package manager (refer to the official npm or yarn documentation).
PATH – All A default shell variable, with a list of paths to directories with executable programs.
PHP_MAX_EXECUTION_TIME + PHP Sets the max_execution_time PHP setting – a maximum time (in seconds) before terminating a script. 300 seconds by default.
PHP_MEMORY_LIMIT + PHP Sets the memory_limit PHP setting – a maximum memory limit per script. It can be set in percentage or MB (25% by default; -1 for unlimited).
PHPFPM_MAX_CHILDREN + NGINX PHP Sets a number of child worker processes for PHP-FPM. It is equal to the number of CPU cores available for the container by default (but no less than 2).
PORT_4848_TCP_PORT – GlassFish (Payara) A port for the admin console.
PROCESS_MANAGER + Node.js Variable for choosing the Node.js process manager (i.e. npm, pm2, forever).
PROCESS_MANAGER_FILE – Node.js A path to the file that contains the start options for the process manager.
PROXY_READ_TIMEOUT + NGINX balancer, NGINX PHP Sets a read timeout (in seconds) from the backend.
PSWD_FILE – GlassFish (Payara) A path to the file with an admin user password.
REDIRECT_EXCLUDE_PORTS + Node.js Excludes listed ports from the auto-redirect algorithm (e.g. 22,23,25,21,111,2049,8743,7979).
REDIS_COMMANDER + Redis Defines if the Redis Commander management tool should be enabled or disabled.
REDIS_ENABLED + PHP Enables (true) or disables (false) object caching with Redis. Service restart is required to apply changes.
REDIS_SENTINEL + Redis Defines if the Redis Sentinel high-availability and monitoring tool should be enabled or disabled.
ROOT_DIR – Node.js Displays a path to the application deployment directory.
RUN_OPTION + .NET Core Provides additional dotnet run options for your project.
SERVER_WEBROOT – LLSMP, LiteSpeed Web Server Displays a path to the application deployment directory.
STACK_NAME – All The name of the current stack.
STACK_PATH – All The home directory of the stack.
STACK_USER – All The name of the stack’s default user.
STANDALONE_MODE_CONFIG + WildFly A configuration file to launch a standalone WildFly server.
TCP_BALANCING + HAProxy Enables (true) or disables (false) traffic proxying and balancing to TPC backends.
UPDATE_PACKAGES
_ON_RESTART
+ Node.js Enables (true) or disables (false) automatic packages installation after the nodejs service restart. If there is no node_modules directory inside the webroot one, such an update is called regardless of this variable.
UPSTREAM_KEEPALIVE + NGINX balancer Sets the keepalive directive value for the upstream.
VERT_SCALING + Java Defines if the default Java GC agent should be enabled (true) or disabled (false).
WAF + LLSMP, LiteSpeed Web Server Enables (true) or disables (false) Web Application Firewall with the Comodo default ruleset for the LiteSpeed Web Server.
WEB_ROOT – Go A path to the deployed application.
WEBROOT – PHP, Tomcat (TomEE), GlassFish (Payara) Displays a path to the application deployment directory.
WORKER_PROCESSES + NGINX balancer Sets a number of worker processes – can be autodetected by NGINX (auto) or set equal to the CPU cores count (define).
WP_PROTECT + LLSMP, LiteSpeed Web Server, LiteSpeed ADC Configures an action for the WordPress Brute Force Attack Protection feature (off|on|drop|deny|throttle|captcha; off by default).
WP_PROTECT_LIMIT + LLSMP, LiteSpeed Web Server, LiteSpeed ADC Sets a limit for the WordPress Brute Force Attack Protection feature (0|1|2-1000; 10 by default).

📝 NOTE
Variabel yang diberi tanda “+” pada kolom Editable berarti bisa Kamu ubah sesuka hati untuk menyesuaikan konfigurasi container-mu. Tapi, setelah kamu mengubahnya, kamu perlu restart container agar perubahan tersebut berlaku.Sementara itu, variabel yang diberi tanda “–” sebaiknya jangan diubah. Karena meskipun Kamu ganti nilainya, perubahan itu tidak akan benar-benar diterapkan ke container, dan malah bisa membuat beberapa fungsi internal menjadi error.

Berikut adalah beberapa variabel umum yang bisa digunakan di semua stack yang dikelola oleh platform, lengkap dengan penjelasan dan apakah bisa kamu ubah atau tidak:

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.
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.
OPEN_INBOUND_PORTS (JELASTIC_PORTS) + (before env creation) Specifies custom ports, which should be opened in the firewall during container 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.

Berikut ini beberapa variable default pada stack yang ada di Jagoan Cloud : 

 

Java #

Stack Variable Name Editable* Description
All Java FULL_GC_AGENT_DEBUG + Enables (true) or disables (false) the debug mode to track the Java GC processes in the logs.
All Java FULL_GC_PERIOD + Sets the interval (in seconds) between the full GC calls; 900 by default, i.e. 15 minutes.
All Java G1PERIODIC_GC_INTERVAL + (for openJDK 12/13 only) A frequency of the G1 Periodic Collection in milliseconds (G1PeriodicGCInterval – 15 minutes by default); set as 0 to disable.
All Java G1PERIODIC_GC_SYS_LOAD_THRESHOLD + (for openJDK 12/13 only) Allows G1 Periodic Collection execution, if the average one-minute system load is below the set value. This condition is ignored if set as zero. Is equal to the {CPU_cores_number} * {GC_SYS_LOAD_THRESHOLD_RATE} by default.
All Java GC_SYS_LOAD_THRESHOLD_RATE + (for openJDK 12/13 only) Custom multiplier to flexibly adjust the G1PeriodicGCSystemLoadThreshold value (0.3 by default).
All Java JAVA_ARGS + Allows passing some custom arguments to the main function of your application.
All Java JAVA_HOME – Points to the directory where the Java runtime environment (JRE) is installed.
All Java JAVA_OPTS_CONFFILE – Path to the variables.conf file.
All Java VERT_SCALING + Defines if the default Java GC agent should be enabled (true) or disabled (false).
Tomcat & TomEE HOT_DEPLOY + Enables (true/enabled/1) or disables (false/disabled/0, by default) hot deploy (i.e. deploy without restart) for application server.
Tomcat & TomEE WEBROOT – Displays a path to the application deployment directory.
GlassFish & Payara ADMIN_USER – A login of the admin user for the administration console.
GlassFish & Payara DAS – Shows if there is a DAS node (required to configure cluster) for the current layer.
GlassFish & Payara GMS_LISTENER_PORT – A port used by the group management service (GMS).
GlassFish & Payara HAZELCAST_CONFIG + Sets a path to the hazelcast configuration file.
GlassFish & Payara HOME_DIR – Container home directory.
GlassFish & Payara JELASTIC_PRIORITY_PORTS + Sets a GlassFish HTTP listener port.
GlassFish & Payara PORT_4848_TCP_PORT – A port for the admin console.
GlassFish & Payara PSWD_FILE – A path to the file with an admin user password.
GlassFish & Payara WEBROOT – Displays a path to the application deployment directory.
WildFly ADMIN_USER – A login of the admin user for the administration console.
WildFly HOME_DIR – Container home directory.
WildFly JBOSS_HOME – WildFly home directory.
WildFly JELASTIC_MEMORY_AUTOCONFIG + Enables (true) or disables (false) memory auto-configuration for WildFly.
WildFly LAUNCH_JBOSS_IN_BACKGROUND + Enables (true) or disables (false) start of an application server in the background mode.
WildFly STANDALONE_MODE_CONFIG + A configuration file to launch a standalone WildFly server.
Spring Boot HOME_DIR – Container home directory.
Java Engine HOME_DIR – Container home directory.

 

PHP #

Stack Variable Name Editable* Description
All PHP CACHE_MEM_LIMIT + Defines the portion of RAM, which should be reserved for the built-in Redis cache server, 10% of container total RAM by default.
All PHP PHP_MAX_EXECUTION_TIME + Sets the max_execution_time PHP setting – a maximum time (in seconds) before terminating a script. 300 seconds by default.
All PHP PHP_MEMORY_LIMIT + Sets the memory_limit PHP setting – a maximum memory limit per script. It can be set in percentage or MB (25% by default; -1 for unlimited).
All PHP REDIS_ENABLED + Enables (true) or disables (false) object caching with Redis. Service restart is required to apply changes.
All PHP WEBROOT – Displays a path to the application deployment directory.
NGINX PHPFPM_MAX_CHILDREN + Sets a number of child worker processes for PHP-FPM. It is equal to the number of CPU cores available for the container by default (but no less than 2).
NGINX PROXY_READ_TIMEOUT + Sets a read timeout (in seconds) from the backend.
LiteSpeed Web Server, LLSMP JELASTIC_AUTOCONFIG + Enables (true/enabled/1, by default) or disables (false/disabled/0) smart auto-configuration based on the allocated RAM and number of CPU cores.
LiteSpeed Web Server, LLSMP ADMIN_USER – A login of the admin user for the administration console.
LiteSpeed Web Server, LLSMP LSWS_MAX_CHILDREN + Redefines the maximum children process limit for the server. The variable is hidden by default as the platform sets this value equal to the number of available CPU cores (usually ensures the best operability). You need to manually add this variable and restart the server to redefine the value.
LiteSpeed Web Server, LLSMP SERVER_WEBROOT – Displays a path to the application deployment directory.
LiteSpeed Web Server, LLSMP WAF + Enables (true) or disables (false) Web Application Firewall with the Comodo default ruleset for the LiteSpeed Web Server.
LiteSpeed Web Server, LLSMP WP_PROTECT + Configures an action for the WordPress Brute Force Attack Protection feature (off|on|drop|deny|throttle|captcha; off by default).
LiteSpeed Web Server, LLSMP WP_PROTECT_LIMIT + Sets a limit for the WordPress Brute Force Attack Protection feature (0|1|2-1000; 10 by default).
LLSMP ADMINPANEL_ENABLED + The “true” and “1” values allow usage of the admin panel, while any other disables it. Restart is required to apply changes.
LLSMP CP_MEM_LIMIT + Defines the portion of RAM, which should be reserved for the application server, 50% of container total RAM by default.
LLSMP DB_MEM_LIMIT + Defines the portion of RAM, which should be reserved for the built-in MariaDB database server, 40% of container total RAM by default.
LEMP ADMINPANEL_ENABLED + The “true” and “1” values allow usage of the admin panel, while any other disables it. Restart is required to apply changes.
LEMP CP_MEM_LIMIT + Defines the portion of RAM, which should be reserved for the application server, 50% of container total RAM by default.
LEMP DB_MEM_LIMIT + Defines the portion of RAM, which should be reserved for the built-in MariaDB database server, 40% of container total RAM by default.

 

Ruby #

Variable Name Editable* Description
GEM_HOME + Locations (can be several) where gems can be found (should include GEM_PATH).
GEM_PATH – A location where gems will be installed by default.
IRBRC – A path to the IRB configuration file.
MY_RUBY_HOME – A path to the directory where the Ruby engine is located.

 

Node.js #

Variable Name Editable* Description
APP_FILE + The main Node.js application file to be launched.
AUTO_OLD_HEAP + Turns on/off (true/false) the platform memory autoconfiguration – sets the maximum size of an old heap based on the amount of memory on the container.
HOME_DIR – Container home directory.
NODE_ENV – Specifies the environment in which an application is running (e.g. development, staging, production, testing, etc.).
NODE_OPTIONS + Variable for specifying the Node.js runtime v8 options.
NVM_DIR – A path to the NVM installation location.
PACKAGE_MANAGER + A variable that contains the name of a package manager for installing the javascript packages (npm or yarn).
PACKAGE_MANAGER_OPTS + Additional options for the package manager (refer to the official npm or yarn documentation).
PROCESS_MANAGER + Variable for choosing the Node.js process manager (i.e. npm, pm2, forever).
PROCESS_MANAGER_FILE – A path to the file that contains the start options for the process manager.
REDIRECT_EXCLUDE_PORTS + Excludes listed ports from the auto-redirect algorithm (e.g. 22,23,25,21,111,2049,8743,7979).
ROOT_DIR – Displays a path to the application deployment directory.
UPDATE_PACKAGES_ON_RESTART + Enables (true) or disables (false) automatic packages installation after the nodejs service restart. If there is no node_modules directory inside the webroot one, such an update is called regardless of this variable.

 

Go (Golang) #

Variable Name Editable* Description
GO_BUILD_OPTIONS + Options and flags that should be used for the Go application building.
GO_RUN + Sets the name of the executable binary file. If not specified, the deployment script will try to locate one based on the project name.
GO_RUN_OPTIONS + Options and flags that should be used to run the Go application.
GOPATH – Defines the Go application deployment folder.
WEB_ROOT – A path to the deployed application.

 

.NET Core #

Variable Name Editable* Description
APP_NAME + Points to the particular folder (if there are multiple applications in a single repository) or runs a specific .dll file in your project.
ASPNETCORE_URLS + Configures .NET Core services to work with the specified URL.
RUN_OPTION + Provides additional dotnet run options for your project.

 

Load Balancer #

Stack Variable Name Editable* Description
HAProxy TCP_BALANCING + Enables (true) or disables (false) traffic proxying and balancing to TPC backends.
NGINX PROXY_READ_TIMEOUT + Sets a read timeout (in seconds) from the backend.
NGINX UPSTREAM_KEEPALIVE + Sets the keepalive directive value for the upstream.
NGINX WORKER_PROCESSES + Sets a number of worker processes – can be autodetected by NGINX (auto) or set equal to the CPU cores count (define).
LiteSpeed ADC ADMIN_USER – A login of the admin user for the administration console.
LiteSpeed ADC DEFAULT_CLUSTER + Selects the load balancing type for requests’ proxying (HTTP, AJP, FCGI, LSAPI). This logic can be disabled (0, disabled, false).
LiteSpeed ADC JELASTIC_AUTOCONFIG + Enables (true/enabled/1, by default) or disables (false/disabled/0) smart auto-configuration based on the allocated RAM and number of CPU cores.
LiteSpeed ADC WP_PROTECT + Configures an action for the WordPress Brute Force Attack Protection feature (off|on|drop|deny|throttle|captcha; off by default).
LiteSpeed ADC WP_PROTECT_LIMIT + Sets a limit for the WordPress Brute Force Attack Protection feature (0|1|2-1000; 10 by default).

 

Databases #

Stack Variable Name Editable* Description
All Databases ADMINPANEL_ENABLED (PHPMYADMIN_ENABLED) + The “true” and “1” values allow usage of the admin panel, while any other disables it. Restart is required to apply changes. The value in brackets is deprecated but can still be used on the MySQL and MariaDB databases.
MySQL, MariaDB, Percona JELASTIC_AUTOCONFIG + Enables (true/enabled/1, by default) or disables (false/disabled/0) smart auto-configuration based on the allocated RAM and number of CPU cores.
MySQL, MariaDB, Percona MAX_OOM_REDUCE_CYCLES + Configures a maximum number of cycles for innodb_buffer_pool_size reduction after OOM-caused restart (5 times by default).
MySQL, MariaDB, Percona OOM_ADJUSTMENT + Defines a value in %, MB, GB (10% by default) that the current innodb_buffer_pool_size parameter should be reduced after each OOM-caused restart.
MySQL, MariaDB, Percona OOM_DETECTION_DELTA + Sets a period (2 seconds by default) for the platform to analyze logs after each service restart to decide if it was caused by OOM killer.
Redis REDIS_COMMANDER + Defines if the Redis Commander management tool should be enabled or disabled.
Redis REDIS_SENTINEL + Defines if the Redis Sentinel high-availability and monitoring tool should be enabled or disabled.
Coachbase ADMIN_USER – A login of the admin user for the administration console.

 

Other Stacks #

Stack Variable Name Editable* Description
Maven JAVA_HOME – Points to the directory where the Java runtime environment (JRE) is installed.
Maven JAVA_OPTS_CONFFILE – Path to the variables.conf file.
Maven MAVEN_DEPLOY_ARTIFACT + Defines an artifact to be deployed (can be redefined for a particular project).
Maven MAVEN_OPTS + Sets parameters to be used to start up the JVM running Maven and can be used to supply additional global options.
Maven MAVEN_RUN_ARGS + Allows passing some custom arguments for the application build (can be redefined for a particular project).
Maven VERT_SCALING + Defines if the default Java GC agent should be enabled (true) or disabled (false).
Shared Storage HOME_DIR – Container home directory.
What are your Feelings

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on August 21, 2025
Java Options and ArgumentsCustom Environment Variables

Powered by BetterDocs

Daftar Isi
  • Default Environment Variables List
    • Java
    • PHP
    • Ruby
    • Node.js
    • Go (Golang)
    • .NET Core
    • Load Balancer
    • Databases
    • Other Stacks
© 2022 Jagoan Cloud