Here are the pre-defined environment variables on Ruby Nginx nodes. Most of these are informational only, meaning that editing them will not change your environment's configuration.
In the tables below you can find the pre-defined environment variables as well as see which are the informational ones.
To add your own environment variables follow the steps outlined in our feature description article: Environment Variables.
ENV VAR | Value (example) | Description | Informational only |
---|---|---|---|
DOCKER_EXPOSED_PORT | 443,7979,80,8080,21,22,25 | List of ports opened via container firewall during environment creation. | Yes |
GEM_HOME | /usr/local/rvm/gems/ruby-2.6.3 | Default installation location for gems. | Yes |
GEM_PATH | /usr/local/rvm/gems/ruby-2.6.3:/usr/local/rvm/gems/ruby-2.6.3 | Gem location(s) | Yes |
IRBRC | /usr/local/rvm/rubies/ruby-2.6.3/.irbrc | IRB config file path | Yes |
MY_RUBY_HOME | /usr/local/rvm/rubies/ruby-2.6.3 | Path to Ruby Engine home directory | Yes |
NGINX_VERSION | 1.16.0 | Current template version for Nginx. | Yes |
PATH | /usr/local/sbin:/usr/local/bin | List of paths for directories with executable program files, default shell variable. | Yes |
RUBY_VERSION | 2.6.3 | Current version of Ruby. | Yes |
rvm_bin_path | /usr/local/rvm/bin | Path to Ruby Version Manager binaries. | Yes |
rvm_path | /usr/local/rvm | Path for Ruby Version Manager | Yes |
rvm_prefix | /usr/local | Path leading to the rvm folder. | Yes |
MASTER_IP | 10.10.127.16 | Ruby master node's IP. | Yes |
MASTER_ID | 217691 | ID of the Ruby master node | Yes |
MASTER_HOST | node217691 | Short hostname for the Ruby master node. | Yes |
You can also set the environment variables in the in nginx-passenger.conf file accessible from the File manager of your application node.
Each variable should be added as a new line in the following format:
passengerenvvar NAME value;