Configuration via environment variables
Settings regarding SSL termination (reverse proxy configuration) are configurable via the docker-compose.yml. The relevant parameters are:
Below is an example of a docker compose file that could be used for your instance, taking note of the parameters below the conf_setttings:
- 80:80/tcp # HTTP
- 443:443/tcp # HTTPS
These parameters are critical for correct implementation for SSL termination on your instance, and should also be reflected on your reverse proxy/load balancer if you are using one.
Descriptions of custom variables
Default value: True (Boolean)
If enabled, redirect HTTP requests to the equivalent HTTPS URL. Disabling should only be necessary if you want to allow "truly" insecure requests. When TLS connections are not being terminated on the server, you should instead enable
use_x_forwarded_proto, and ensure the
use_x_forwarded_proto header is being set by upstream load balancers and reverse proxies.
Default: False (Boolean)
If enabled, check the
use_x_forwarded_proto header in requests to determine the URI scheme (HTTP or HTTPS). The header will be passed through to the frontend server, and used to check if a HTTP redirect to the equivalent HTTPS URL should be sent when HTTPS request redirection is enabled.