1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 15:28:06 +02:00

Allow the port used for TLS to be changed

This commit is contained in:
Christopher Hoskin 2021-04-22 09:11:26 +01:00
parent 9fa1e7dfe9
commit f71a2286e3
3 changed files with 4 additions and 2 deletions

View file

@ -106,6 +106,7 @@ function __main__() {
export NGINX_PRIVATE_KEY_PATH
export NGINX_CERTIFICATE_PATH
export NGINX_CONFIG_PATH
export TLS_PORT
# shellcheck disable=SC2068
exec docker-compose -p "$project_name" ${compose_file_flags[@]} "$@"

View file

@ -23,4 +23,5 @@ REDIS_DATA_PATH=data/redis
NGINX_ENABLED=false
NGINX_CONFIG_PATH=config/nginx/nginx.conf
NGINX_PRIVATE_KEY_PATH=config/nginx/certs/overleaf_key.pem
NGINX_CERTIFICATE_PATH=config/nginx/certs/overleaf_certificate.pem
NGINX_CERTIFICATE_PATH=config/nginx/certs/overleaf_certificate.pem
TLS_PORT=443

View file

@ -5,7 +5,7 @@ services:
nginx:
image: "${NGINX_IMAGE}"
ports:
- 127.0.0.1:443:18443
- "127.0.0.1:${TLS_PORT:-443}:18443"
volumes:
- "${NGINX_PRIVATE_KEY_PATH}:/certs/nginx_key.pem"
- "${NGINX_CERTIFICATE_PATH}:/certs/nginx_certificate.pem"