arrow-left

All pages
gitbookPowered by GitBook
1 of 3

Loading...

Loading...

Loading...

Local Development

Reverse proxy for secure and insecure nginx configurations.

hashtag
Nginx Reverse Proxy

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.

hashtag
Structure of Reverse Proxy Nginx package

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 job using Ofelia exists to renew the certificates automatically based on the certificate renewal period.

circle-info

Adding new packages that require external access will require adding the Nginx config needed in this package.

: A folder that contains all the secure configs related to the services that need outside access.

Reverse Proxy Nginx

Reverse proxy for secure and insecure nginx configurations.

Environment Variables

Listed in this page are all environment variables needed to run Reverse Proxy Nginx.

Variable Name
Type
Relevance
Required
Default

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