TLS and HTTPS
HTTPS is served by the nginx container. It is not enabled by default.
- Put the certificate and key on the host, for example in
config/nginx/certs/(fullchain.pemandprivkey.pem). - In
docker-compose.yml, in thenginxservice, publish port 443 ("443:443") and mount the certificates (./config/nginx/certs:/etc/nginx/certs:ro). - Copy
config/nginx/ssl.conf.exampletoconfig/nginx/templates/ssl.conf.templateand setserver_name. Only*.templatefiles in that directory are loaded. - Set
UI_URL(andAPI_URLif the API is also served over HTTPS) to thehttps://URLs in.env, then restart with./ontoportal start.
nginx passes X-Forwarded-Proto to the web interface, so redirects and generated links use https.