kefu/nginx.rewrite

24 lines
589 B
Plaintext
Raw Normal View History

2024-12-10 02:50:12 +00:00
#PROXY-START/
location /
{
try_files $uri @kefu;
}
location @kefu {
proxy_read_timeout 1200s;
proxy_pass http://127.0.0.1:8082;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
add_header X-Cache $upstream_cache_status;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
#Set Nginx Cache
add_header Cache-Control no-cache;
}
#PROXY-END/