Update nginx.conf

This commit is contained in:
David Rotermund 2024-07-15 10:41:31 +02:00 committed by GitHub
parent 3423cd93a4
commit f130582030
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
events {}
http {
events {}
http {
server {
listen 80 default_server;
server_name _;
@ -27,6 +27,17 @@
proxy_read_timeout 3m;
proxy_send_timeout 3m;
}
}
}
location /register {
proxy_pass http://overleafpython:80;
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 Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 3m;
proxy_send_timeout 3m;
}
}
}