diff --git a/conf/huiwings/admin.conf b/conf/huiwings/admin.conf index cfc7f8a..414f3b2 100644 --- a/conf/huiwings/admin.conf +++ b/conf/huiwings/admin.conf @@ -112,6 +112,14 @@ server { proxy_pass http://127.0.0.1:3000/api/v1/uc/; } + location /api/v1/proc/ { + proxy_pass http://$huiwing_htyproc_rust/api/v1/proc/; + 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; + } + # 同域独立测 Rust TS/proc(不经 ts./proc. 子域);/api/v2 → 本机 htyts/htyproc location /api/v2/ts/ { proxy_pass http://$huiwing_htyts_rust/api/v1/ts/; diff --git a/conf/moicen/admin.conf b/conf/moicen/admin.conf index 04106e4..60322a8 100644 --- a/conf/moicen/admin.conf +++ b/conf/moicen/admin.conf @@ -136,6 +136,15 @@ server { proxy_pass http://127.0.0.1:3000/api/v1/uc/; } + # 管理端历史路径 /api/v1/proc/*(与 /api/v2/proc/ 同 upstream Rust htyproc) + location /api/v1/proc/ { + proxy_pass http://$huiwing_htyproc_rust/api/v1/proc/; + 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; + } + location /api/v2/ts/ { rewrite ^/api/v2/ts/$ /api/v1/ts break; rewrite ^/api/v2/ts/(.+)$ /api/v1/ts/$1 break;