add silky center
This commit is contained in:
parent
811541aa66
commit
6eba0ac564
41
nginx/silky-center.conf
Normal file
41
nginx/silky-center.conf
Normal file
@ -0,0 +1,41 @@
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default keep-alive; #默认为keep-alive 可以支持 一般http请求
|
||||
'websocket' upgrade; #如果为websocket 则为 upgrade 可升级的。
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name xiao.silkyai.cn;
|
||||
|
||||
client_max_body_size 1024m;
|
||||
|
||||
location / {
|
||||
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 Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_read_timeout 86400; # 可选的长时间保持 WebSocket 连接
|
||||
|
||||
proxy_pass http://localhost:3005;
|
||||
}
|
||||
location /resources {
|
||||
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 Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_read_timeout 86400; # 可选的长时间保持 WebSocket 连接
|
||||
|
||||
proxy_pass http://localhost:9000/resources;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user