1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-25 10:18:06 +02:00

Configure nginx to redirect HTTP to HTTPS

This commit is contained in:
Christopher Hoskin 2021-10-07 09:39:14 +01:00
parent 7c754add39
commit 2be24268de
5 changed files with 20 additions and 2 deletions

View file

@ -5,7 +5,8 @@ services:
nginx:
image: "${NGINX_IMAGE}"
ports:
- "127.0.0.1:${TLS_PORT:-443}:443"
- "${NGINX_TLS_LISTEN_IP:-0.0.0.0}:${TLS_PORT:-443}:443"
- "${NGINX_HTTP_LISTEN_IP:-127.0.1.1}:${SHARELATEX_PORT:-80}:80"
volumes:
- "${TLS_PRIVATE_KEY_PATH}:/certs/nginx_key.pem:ro"
- "${TLS_CERTIFICATE_PATH}:/certs/nginx_certificate.pem:ro"