2015-02-06 12:01:50 -05:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name _; # Catch all, see http://nginx.org/en/docs/http/server_names.html
|
|
|
|
|
2020-02-13 05:59:20 -05:00
|
|
|
root /var/www/sharelatex/web/public/;
|
2015-02-06 12:01:50 -05:00
|
|
|
|
|
|
|
location / {
|
2016-03-08 11:05:42 -05:00
|
|
|
proxy_pass http://127.0.0.1:3000;
|
2015-02-06 12:01:50 -05:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
2021-06-24 11:12:46 -04:00
|
|
|
proxy_set_header Host $host;
|
2015-02-06 12:01:50 -05:00
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2020-10-22 12:24:40 -04:00
|
|
|
proxy_read_timeout 10m;
|
|
|
|
proxy_send_timeout 10m;
|
2015-02-06 12:01:50 -05:00
|
|
|
}
|
2020-02-13 05:59:20 -05:00
|
|
|
|
2015-02-06 12:01:50 -05:00
|
|
|
location /socket.io {
|
2016-03-08 11:05:42 -05:00
|
|
|
proxy_pass http://127.0.0.1:3026;
|
2015-02-06 12:01:50 -05:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
2021-06-24 11:12:46 -04:00
|
|
|
proxy_set_header Host $host;
|
2015-02-06 12:01:50 -05:00
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2020-10-22 12:24:40 -04:00
|
|
|
proxy_read_timeout 10m;
|
|
|
|
proxy_send_timeout 10m;
|
2015-02-06 12:01:50 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
location /stylesheets {
|
|
|
|
expires 1y;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /minjs {
|
|
|
|
expires 1y;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /img {
|
|
|
|
expires 1y;
|
|
|
|
}
|
|
|
|
}
|