use asgi
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user