Skip to main content
API Self-Hosted v2 is deprecated. Existing v2 deployments will continue to run, but v2 will no longer receive feature updates or non-critical fixes. Plan an upgrade to v3: see Migrating from API Self-Hosted V2 to V3.

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: 
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 

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.
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.