Fix nginx.

This commit is contained in:
emil28092005
2026-01-18 06:13:23 +03:00
parent f93d66c35b
commit 2e9ad750de
+38
View File
@@ -6,6 +6,25 @@ server {
listen 80; listen 80;
server_name localhost; server_name localhost;
location = / {
add_header Cache-Control "no-store" always;
proxy_pass http://shagram_app;
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-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location ^~ /static/ {
add_header Cache-Control "no-store" always;
proxy_pass http://shagram_app;
proxy_http_version 1.1;
proxy_set_header Host $host;
}
location / { location / {
proxy_pass http://shagram_app; proxy_pass http://shagram_app;
proxy_http_version 1.1; proxy_http_version 1.1;
@@ -25,6 +44,25 @@ server {
ssl_certificate /etc/nginx/certs/cert.pem; ssl_certificate /etc/nginx/certs/cert.pem;
ssl_certificate_key /etc/nginx/certs/key.pem; ssl_certificate_key /etc/nginx/certs/key.pem;
location = / {
add_header Cache-Control "no-store" always;
proxy_pass http://shagram_app;
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-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location ^~ /static/ {
add_header Cache-Control "no-store" always;
proxy_pass http://shagram_app;
proxy_http_version 1.1;
proxy_set_header Host $host;
}
location / { location / {
proxy_pass http://shagram_app; proxy_pass http://shagram_app;
proxy_http_version 1.1; proxy_http_version 1.1;