Skip to main content Link Search Menu Expand Document (external link)

TLS and HTTPS

HTTPS is served by the nginx container. It is not enabled by default.

  1. Put the certificate and key on the host, for example in config/nginx/certs/ (fullchain.pem and privkey.pem).
  2. In docker-compose.yml, in the nginx service, publish port 443 ("443:443") and mount the certificates (./config/nginx/certs:/etc/nginx/certs:ro).
  3. Copy config/nginx/ssl.conf.example to config/nginx/templates/ssl.conf.template and set server_name. Only *.template files in that directory are loaded.
  4. Set UI_URL (and API_URL if the API is also served over HTTPS) to the https:// URLs in .env, then restart with ./ontoportal start.

nginx passes X-Forwarded-Proto to the web interface, so redirects and generated links use https.