Spaces:
Running
Running
Update nginx.conf
Browse files- nginx.conf +3 -3
nginx.conf
CHANGED
@@ -5,11 +5,11 @@ events {
|
|
5 |
http {
|
6 |
# 禁用 admin 接口和日志输出
|
7 |
server {
|
8 |
-
listen
|
9 |
|
10 |
location /ai/v1/ {
|
11 |
rewrite ^/ai/v1/(.*)$ /v1/$1 break;
|
12 |
-
proxy_pass http://127.0.0.1:
|
13 |
proxy_set_header Host $host;
|
14 |
proxy_set_header X-Real-IP $remote_addr;
|
15 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
@@ -17,7 +17,7 @@ http {
|
|
17 |
}
|
18 |
|
19 |
location / {
|
20 |
-
proxy_pass http://127.0.0.1:
|
21 |
proxy_set_header Host $host;
|
22 |
proxy_set_header X-Real-IP $remote_addr;
|
23 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
5 |
http {
|
6 |
# 禁用 admin 接口和日志输出
|
7 |
server {
|
8 |
+
listen 3001;
|
9 |
|
10 |
location /ai/v1/ {
|
11 |
rewrite ^/ai/v1/(.*)$ /v1/$1 break;
|
12 |
+
proxy_pass http://127.0.0.1:3000;
|
13 |
proxy_set_header Host $host;
|
14 |
proxy_set_header X-Real-IP $remote_addr;
|
15 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
17 |
}
|
18 |
|
19 |
location / {
|
20 |
+
proxy_pass http://127.0.0.1:3000;
|
21 |
proxy_set_header Host $host;
|
22 |
proxy_set_header X-Real-IP $remote_addr;
|
23 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|