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