This commit is contained in:
2026-05-26 07:37:05 -06:00
parent 759593a224
commit 8731012f47
8 changed files with 570 additions and 927 deletions

View File

@@ -4,7 +4,7 @@ location /public {
# WebSocket 支持
location /ws/ {
proxy_pass http://websocket;
proxy_pass http://backend;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

View File

@@ -38,12 +38,7 @@ http {
keepalive 32;
}
upstream websocket {
server 127.0.0.1:8001;
keepalive 32;
}
add_header X-XSS-Protection "1; mode=block" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Frame-Options SAMEORIGIN always;
add_header X-Content-Type-Options nosniff always;