20 行
612 B
Plaintext
20 行
612 B
Plaintext
# 陪玩平台后端 API 专用反向代理
|
||
location /api/ {
|
||
proxy_pass http://127.0.0.1:3020/api/;
|
||
proxy_http_version 1.1;
|
||
proxy_set_header Host $host;
|
||
proxy_set_header X-Real-IP $remote_addr;
|
||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
proxy_set_header X-Forwarded-Proto $scheme;
|
||
proxy_read_timeout 300s;
|
||
proxy_connect_timeout 60s;
|
||
client_max_body_size 100m;
|
||
}
|
||
|
||
# 陪玩平台 PC 运营管理后台(Arco Design Pro)
|
||
location ^~ /admin/ {
|
||
alias /www/wwwroot/peiww.gynhc.com/admin/;
|
||
try_files $uri $uri/ /admin/index.html;
|
||
index index.html;
|
||
}
|