onlyrickroll commited on
Commit
8cde708
·
verified ·
1 Parent(s): fe220f1

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +3 -3
nginx.conf CHANGED
@@ -24,15 +24,15 @@ http {
24
  server_name localhost;
25
 
26
  # 根目录反代 8080 (C/C++ 服务)
27
- location /chat {
28
  proxy_pass http://127.0.0.1:8080;
29
  proxy_set_header Host $host;
30
  proxy_set_header X-Real-IP $remote_addr;
31
  }
32
 
33
  # /bot 路径反代 8888 (Python 服务)
34
- location / {
35
- proxy_pass http://127.0.0.1:18790;
36
  proxy_http_version 1.1;
37
  proxy_set_header Upgrade $http_upgrade;
38
  proxy_set_header Connection $connection_upgrade;
 
24
  server_name localhost;
25
 
26
  # 根目录反代 8080 (C/C++ 服务)
27
+ location / {
28
  proxy_pass http://127.0.0.1:8080;
29
  proxy_set_header Host $host;
30
  proxy_set_header X-Real-IP $remote_addr;
31
  }
32
 
33
  # /bot 路径反代 8888 (Python 服务)
34
+ location /bot {
35
+ proxy_pass http://127.0.0.1:8888;
36
  proxy_http_version 1.1;
37
  proxy_set_header Upgrade $http_upgrade;
38
  proxy_set_header Connection $connection_upgrade;