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

Clarify when to change the proxy_pass

This commit is contained in:
Christopher Hoskin 2021-04-26 11:16:40 +01:00
parent 77bd640dae
commit c1d6e5d759
3 changed files with 6 additions and 2 deletions

View file

@ -26,6 +26,8 @@ Sets the path to the directory that will be mounted into the main `sharelatex` c
Sets the host port that the container will bind to. For example, if this is set to `8099`, then the web interface will be available on `http://localhost:8099`.
When used in conjunction with the [TLS Proxy](tls-proxy.md), the `proxy_pass` port in [nginx.conf](config/nginx/nginx.conf) also needs to be changed.
- Default: 80

View file

@ -6,4 +6,6 @@ The toolkit is initialised with a sample private key in `config/nginx/certs/over
A default config for NGINX is provided in `config/nginx/nginx.conf` which may be customised to your requirements. The path to the config file can be changed with the `NGINX_CONFIG_PATH` variable.
By default the https web interface will be available on `https://localhost:443`. The port can be changed via the `TLS_PORT` variable.
When the [SHARELATEX_PORT](overleaf-rc.md#sharelatex_port) variable is set, the port in the `proxy_pass` statement in `nginx.conf` needs to be changed to match.
By default the https web interface will be available on `https://localhost:443`. The port can be changed via the `TLS_PORT` variable.

View file

@ -57,7 +57,7 @@ http {
client_max_body_size 50M;
location / {
proxy_pass http://sharelatex:80; # change to whatever host/port the docker container is listening on.
proxy_pass http://sharelatex:80; # The port must match the value of SHARELATEX_PORT.
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;