Listed in this page are all environment variables needed to run Reverse Proxy Nginx.
DOMAIN_NAME
String
Domain name
Yes
localhost
SUBDOMAINS
String
Subdomain names
Yes
RENEWAL_EMAIL
String
Renewal email
Yes
REVERSE_PROXY_INSTANCES
Number
Number of instances
No
1
STAGING
String
Generate fake or real certificate (true for fake)
No
false
NGINX_CPU_LIMIT
Number
CPU usage limit
No
0
NGINX_CPU_RESERVE
Number
Reserved CPU
No
0.05
NGINX_MEMORY_LIMIT
String
RAM usage limit
No
3G
NGINX_MEMORY_RESERVE
String
Reserved RAM
No
500M
Reverse proxy for secure and insecure nginx configurations.
Reverse proxy for secure and insecure nginx configurations.
This package can be used to secure all of the data transfered to and from services using SSL encryption and also to generate SSL certificates as well.
Instead of configuring each package separately, we're using this package that will hold all of the Nginx configuration.
It will generate Staging or Production certificates from Let's Encrypt to ensure a secure connection (in case we require SSL to be enabled).
It is responsible for routing network traffic to the correct service.
The current package contains the following:
config
: A folder that contains the general Nginx config for secure and insecure mode.
package-conf-insecure
: A folder that contains all the insecure configs related to the services that need outside access.
package-conf-secure
: A folder that contains all the secure configs related to the services that need outside access.
A job using Ofelia exists to renew the certificates automatically based on the certificate renewal period.
Adding new packages that require external access will require adding the Nginx config needed in this package.