admin: proxy /api/v1/proc to Rust htyproc (same as v2)
Made-with: Cursor
This commit is contained in:
@@ -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/;
|
||||
|
||||
Reference in New Issue
Block a user