Spaces:
Running
Running
Delete nginx.conf
Browse files- nginx.conf +0 -30
nginx.conf
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
events {
|
2 |
-
worker_connections 1024;
|
3 |
-
}
|
4 |
-
|
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;
|
16 |
-
proxy_set_header X-Forwarded-Proto $scheme;
|
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;
|
24 |
-
proxy_set_header X-Forwarded-Proto $scheme;
|
25 |
-
}
|
26 |
-
}
|
27 |
-
|
28 |
-
# 禁用错误日志输出
|
29 |
-
error_log /dev/null crit;
|
30 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|