feat: /api/v2 ts/proc to Rust htyts:3003 htyproc:3004, admin routes
- ts.conf/proc.conf: v2 locations and huiwing_htyts_rust/htyproc_rust vars - admin.conf: /api/v2/ts and /api/v2/proc on admin for same-origin tests - local_macos proc.conf; remove duplicate conf/alchemy - huiwings ai.conf: coze auth comment lines merged from removed alchemy copy Made-with: Cursor
This commit is contained in:
@@ -10,7 +10,9 @@ server {
|
||||
ssl_certificate_key /etc/letsencrypt/live/huiwings.cn/privkey.pem; # managed by Certbot
|
||||
|
||||
set $tmp_file_dir "/file_upload"; # 文件存储路径
|
||||
set $task_server "http://127.0.0.1:8080"; # task server host
|
||||
set $task_server "http://127.0.0.1:8080"; # Java task_server
|
||||
set $huiwing_htyts_rust "127.0.0.1:3003"; # huiwing 仓库 htyts(Rust)
|
||||
set $huiwing_htyproc_rust "127.0.0.1:3004"; # huiwing 仓库 htyproc(Rust)
|
||||
set $htyuc "http://127.0.0.1:3000"; #htyuc host
|
||||
set $resty_loc "/usr/local/openresty";
|
||||
set $convert "/usr/bin/convert";
|
||||
@@ -109,6 +111,22 @@ server {
|
||||
location /api/v1/uc/ {
|
||||
proxy_pass http://127.0.0.1:3000/api/v1/uc/;
|
||||
}
|
||||
|
||||
# 同域独立测 Rust TS/proc(不经 ts./proc. 子域);/api/v2 → 本机 htyts/htyproc
|
||||
location /api/v2/ts/ {
|
||||
proxy_pass http://$huiwing_htyts_rust/api/v1/ts/;
|
||||
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/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;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
Reference in New Issue
Block a user