Spaces:
Paused
Paused
Update nginx.conf
Browse files- nginx.conf +5 -2
nginx.conf
CHANGED
|
@@ -16,15 +16,18 @@ http {
|
|
| 16 |
server_name localhost;
|
| 17 |
|
| 18 |
# 根目录反代 8080 (C/C++ 服务)
|
| 19 |
-
location / {
|
| 20 |
proxy_pass http://127.0.0.1:8080;
|
| 21 |
proxy_set_header Host $host;
|
| 22 |
proxy_set_header X-Real-IP $remote_addr;
|
| 23 |
}
|
| 24 |
|
| 25 |
# /bot 路径反代 8888 (Python 服务)
|
| 26 |
-
location /
|
| 27 |
proxy_pass http://127.0.0.1:18790;
|
|
|
|
|
|
|
|
|
|
| 28 |
proxy_set_header Host $host;
|
| 29 |
proxy_set_header X-Real-IP $remote_addr;
|
| 30 |
}
|
|
|
|
| 16 |
server_name localhost;
|
| 17 |
|
| 18 |
# 根目录反代 8080 (C/C++ 服务)
|
| 19 |
+
location /chat {
|
| 20 |
proxy_pass http://127.0.0.1:8080;
|
| 21 |
proxy_set_header Host $host;
|
| 22 |
proxy_set_header X-Real-IP $remote_addr;
|
| 23 |
}
|
| 24 |
|
| 25 |
# /bot 路径反代 8888 (Python 服务)
|
| 26 |
+
location / {
|
| 27 |
proxy_pass http://127.0.0.1:18790;
|
| 28 |
+
proxy_http_version 1.1;
|
| 29 |
+
proxy_set_header Upgrade $http_upgrade;
|
| 30 |
+
proxy_set_header Connection $connection_upgrade;
|
| 31 |
proxy_set_header Host $host;
|
| 32 |
proxy_set_header X-Real-IP $remote_addr;
|
| 33 |
}
|