Update nginx.conf
This commit is contained in:
parent
2c82f5149e
commit
d88056b4f9
1 changed files with 79 additions and 38 deletions
|
@ -5,6 +5,7 @@ http {
|
|||
server_name _;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
ssl_certificate /certs/nginx_certificate.pem;
|
||||
|
@ -29,7 +30,7 @@ http {
|
|||
}
|
||||
|
||||
location /register {
|
||||
proxy_pass http://overleafpython:80;
|
||||
proxy_pass http://overleafregister:80;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
|
@ -39,5 +40,45 @@ http {
|
|||
proxy_read_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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue