Files
message-pusher/nginx.conf
T
2022-07-29 23:53:06 +08:00

15 lines
503 B
Nginx Configuration File

server {
server_name 你的域名;
location / {
proxy_pass http://localhost:3000; # 注意如果你改变了默认端口,记得在这里进行更新
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-Forwarded-For $remote_addr;
proxy_cache_bypass $http_upgrade;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}
}