Update nginx.conf

This commit is contained in:
David Rotermund 2024-07-21 02:35:55 +02:00 committed by GitHub
parent 2c82f5149e
commit d88056b4f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,7 @@ http {
server_name _; server_name _;
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }
server { server {
listen 443 ssl; listen 443 ssl;
ssl_certificate /certs/nginx_certificate.pem; ssl_certificate /certs/nginx_certificate.pem;
@ -29,7 +30,7 @@ http {
} }
location /register { location /register {
proxy_pass http://overleafpython:80; proxy_pass http://overleafregister:80;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
@ -39,5 +40,45 @@ http {
proxy_read_timeout 3m; proxy_read_timeout 3m;
proxy_send_timeout 3m; proxy_send_timeout 3m;
} }
location /articles {
proxy_pass https://www.overleaf.com;
proxy_set_header Host www.overleaf.com;
proxy_ssl_verify off;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 3m;
proxy_send_timeout 3m;
}
location /templates {
proxy_pass https://www.overleaf.com;
proxy_set_header Host www.overleaf.com;
proxy_ssl_verify off;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 3m;
proxy_send_timeout 3m;
}
location /latex/templates {
proxy_pass https://www.overleaf.com;
proxy_set_header Host www.overleaf.com;
proxy_ssl_verify off;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 3m;
proxy_send_timeout 3m;
}
} }
} }