gccnb commited on
Commit
8f8013b
·
verified ·
1 Parent(s): a363c0e

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +1 -9
nginx.conf CHANGED
@@ -9,15 +9,7 @@ http {
9
  server {
10
  listen 3001;
11
 
12
- location /ai/v1/ {
13
- rewrite ^/ai/v1/(.*)$ /v1/$1 break;
14
- proxy_pass http://127.0.0.1:3000;
15
- proxy_set_header Host $host;
16
- proxy_set_header X-Real-IP $remote_addr;
17
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
18
- proxy_set_header X-Forwarded-Proto $scheme;
19
- }
20
-
21
  location / {
22
  proxy_pass http://127.0.0.1:3000;
23
  proxy_set_header Host $host;
 
9
  server {
10
  listen 3001;
11
 
12
+ # 保留根路径代理
 
 
 
 
 
 
 
 
13
  location / {
14
  proxy_pass http://127.0.0.1:3000;
15
  proxy_set_header Host $host;