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:
@@ -1 +0,0 @@
|
||||
huiwing:$apr1$r50umplo$ltopNoFz2rhNuSgKN46e0/
|
||||
@@ -1,69 +0,0 @@
|
||||
server {
|
||||
# https://serverfault.com/questions/798734/use-variable-for-server-name-in-nginx#
|
||||
# server_name $servername;
|
||||
server_name "ai.alchemy-studio.cn";
|
||||
listen 443 ssl;
|
||||
# listen 80;
|
||||
client_max_body_size 10M;
|
||||
|
||||
# disable in local test env
|
||||
ssl_certificate /etc/letsencrypt/live/alchemy-studio.cn/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/alchemy-studio.cn/privkey.pem; # managed by Certbot
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
proxy_set_header Host "ai.alchemy-studio.cn";
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
# disable in local test env
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Host $remote_addr;
|
||||
}
|
||||
|
||||
location /api/v1/index {
|
||||
|
||||
return 200 "Ai api index";
|
||||
}
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
add_header Access-Control-Allow-Headers 'Authorization,unionid,HtySudoerToken,HtyHost,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Max-Age 86400 always;
|
||||
if ($request_method = 'OPTIONS') {
|
||||
return 200;
|
||||
}
|
||||
|
||||
location /api/v1/ai/ {
|
||||
proxy_set_header Host $host;
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
add_header Access-Control-Allow-Headers 'Authorization,HtyAdminToken,HtySudoerToken,HtyHost,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Max-Age 86400 always;
|
||||
if ($request_method = 'OPTIONS') {
|
||||
return 200;
|
||||
}
|
||||
|
||||
# auth_basic "ai_api access auth";
|
||||
# auth_basic_user_file /usr/local/openresty/nginx/conf.d/.htpasswd;
|
||||
|
||||
proxy_pass http://127.0.0.1:5000/;
|
||||
}
|
||||
|
||||
location /api/v1/coze/ {
|
||||
proxy_set_header Host $host;
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
add_header Access-Control-Allow-Headers 'Authorization,HtyAdminToken,HtySudoerToken,HtyHost,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Max-Age 86400 always;
|
||||
if ($request_method = 'OPTIONS') {
|
||||
return 200;
|
||||
}
|
||||
|
||||
# auth_basic "coze_api access auth";
|
||||
# auth_basic_user_file /usr/local/openresty/nginx/conf.d/.htpasswd;
|
||||
|
||||
proxy_pass http://127.0.0.1:6000/;
|
||||
}
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
@@ -61,6 +61,9 @@ server {
|
||||
return 200;
|
||||
}
|
||||
|
||||
# auth_basic "coze_api access auth";
|
||||
# auth_basic_user_file /usr/local/openresty/nginx/conf.d/.htpasswd;
|
||||
|
||||
proxy_pass http://127.0.0.1:6000/;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,9 @@ server {
|
||||
ssl_certificate /etc/letsencrypt/live/huiwings.cn/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/huiwings.cn/privkey.pem; # managed by Certbot
|
||||
|
||||
# huiwing 仓库:`cargo run -p htyproc`,env 见 envs/*/htyproc.env(PROC_PORT=3004)
|
||||
set $huiwing_htyproc_rust "127.0.0.1:3004";
|
||||
|
||||
location /api/v1/proc/ {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
@@ -19,4 +22,17 @@ server {
|
||||
}
|
||||
proxy_pass http://127.0.0.1:8880/api/v1/proc/;
|
||||
}
|
||||
|
||||
# Rust htyproc:对外 /api/v2/proc → 本进程;后端路由仍为 /api/v1/proc
|
||||
location /api/v2/proc/ {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
add_header Access-Control-Allow-Headers 'Authorization,HtyAdminToken,HtySudoerToken,HtyHost,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Max-Age 86400 always;
|
||||
if ($request_method = 'OPTIONS') {
|
||||
return 200;
|
||||
}
|
||||
proxy_pass http://$huiwing_htyproc_rust/api/v1/proc/;
|
||||
}
|
||||
}
|
||||
|
||||
+17
-1
@@ -10,7 +10,10 @@ server {
|
||||
ssl_certificate /etc/letsencrypt/live/huiwings.cn/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/huiwings.cn/privkey.pem; # managed by Certbot
|
||||
|
||||
set $task_server "http://127.0.0.1:8080"; # task server host
|
||||
set $task_server "http://127.0.0.1:8080"; # Java task_server
|
||||
# huiwing 仓库:`cargo run -p htyts`,env 见 envs/*/htyts.env(TS_PORT=3003)
|
||||
set $huiwing_htyts_rust "127.0.0.1:3003";
|
||||
set $task_server_rust "http://$huiwing_htyts_rust"; # 与 Java 并行,仅 /api/v2 走此
|
||||
set $htyuc "http://127.0.0.1:3000"; #htyuc host
|
||||
set $resty_loc "/usr/local/openresty";
|
||||
|
||||
@@ -26,6 +29,19 @@ server {
|
||||
}
|
||||
proxy_pass http://127.0.0.1:8080/api/v1/ts/;
|
||||
}
|
||||
|
||||
# Rust htyts:对外 /api/v2/ts → 本进程;后端路由仍为 /api/v1/ts(与 Java /api/v1/ts 并行)
|
||||
location /api/v2/ts/ {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
add_header Access-Control-Allow-Headers 'Authorization,HtyAdminToken,HtySudoerToken,HtyHost,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Max-Age 86400 always;
|
||||
if ($request_method = 'OPTIONS') {
|
||||
return 200;
|
||||
}
|
||||
proxy_pass http://$huiwing_htyts_rust/api/v1/ts/;
|
||||
}
|
||||
}
|
||||
|
||||
# server {
|
||||
|
||||
@@ -6,7 +6,9 @@ server {
|
||||
client_max_body_size 10M;
|
||||
|
||||
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";
|
||||
set $huiwing_htyproc_rust "127.0.0.1:3004";
|
||||
set $htyuc "http://127.0.0.1:3000"; #htyuc host
|
||||
set $resty_loc "/usr/local/openresty";
|
||||
set $convert "/usr/local/bin/convert";
|
||||
@@ -101,4 +103,19 @@ server {
|
||||
location /api/v1/uc/ {
|
||||
proxy_pass http://127.0.0.1:3000/api/v1/uc/;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,9 @@ server {
|
||||
listen 8088;
|
||||
client_max_body_size 10M;
|
||||
|
||||
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 $task_server_rust "http://$huiwing_htyts_rust";
|
||||
set $htyuc "http://127.0.0.1:3000"; #htyuc host
|
||||
set $resty_loc "/usr/local/openresty";
|
||||
|
||||
@@ -20,5 +22,17 @@ server {
|
||||
}
|
||||
proxy_pass http://127.0.0.1:8080/api/v1/ts/;
|
||||
}
|
||||
|
||||
location /api/v2/ts/ {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
add_header Access-Control-Allow-Headers 'Authorization,HtyAdminToken,HtySudoerToken,HtyHost,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Max-Age 86400 always;
|
||||
if ($request_method = 'OPTIONS') {
|
||||
return 200;
|
||||
}
|
||||
proxy_pass http://$huiwing_htyts_rust/api/v1/ts/;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,9 @@ server {
|
||||
client_max_body_size 10M;
|
||||
|
||||
set $tmp_file_dir "/usr/local/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";
|
||||
set $huiwing_htyproc_rust "127.0.0.1:3004";
|
||||
# set $htyuc "http://127.0.0.1:3000"; #htyuc host
|
||||
set $htyuc "https://admin.moicen.com"; #Verify jwt token
|
||||
set $resty_loc "/usr/local/opt/openresty";
|
||||
@@ -105,6 +107,21 @@ server {
|
||||
proxy_pass http://127.0.0.1:3000/api/v1/uc/;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
location /api/ngx/upyun_download {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upyun_download.lua;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
server {
|
||||
server_name "proc.localhost";
|
||||
listen 8088;
|
||||
client_max_body_size 10M;
|
||||
|
||||
set $huiwing_htyproc_rust "127.0.0.1:3004"; # huiwing 仓库 htyproc(Rust)
|
||||
|
||||
location /api/v1/proc/ {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
add_header Access-Control-Allow-Headers 'Authorization,HtyAdminToken,HtySudoerToken,HtyHost,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Max-Age 86400 always;
|
||||
if ($request_method = 'OPTIONS') {
|
||||
return 200;
|
||||
}
|
||||
proxy_pass http://127.0.0.1:8880/api/v1/proc/;
|
||||
}
|
||||
|
||||
location /api/v2/proc/ {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
add_header Access-Control-Allow-Headers 'Authorization,HtyAdminToken,HtySudoerToken,HtyHost,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Max-Age 86400 always;
|
||||
if ($request_method = 'OPTIONS') {
|
||||
return 200;
|
||||
}
|
||||
proxy_pass http://$huiwing_htyproc_rust/api/v1/proc/;
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,9 @@ server {
|
||||
listen 8088;
|
||||
client_max_body_size 10M;
|
||||
|
||||
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 $task_server_rust "http://$huiwing_htyts_rust";
|
||||
set $htyuc "http://127.0.0.1:3000"; #htyuc host
|
||||
set $resty_loc "/usr/local/opt/openresty";
|
||||
|
||||
@@ -20,5 +22,17 @@ server {
|
||||
}
|
||||
proxy_pass http://127.0.0.1:8080/api/v1/ts/;
|
||||
}
|
||||
|
||||
location /api/v2/ts/ {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
add_header Access-Control-Allow-Headers 'Authorization,HtyAdminToken,HtySudoerToken,HtyHost,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Max-Age 86400 always;
|
||||
if ($request_method = 'OPTIONS') {
|
||||
return 200;
|
||||
}
|
||||
proxy_pass http://$huiwing_htyts_rust/api/v1/ts/;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+18
-1
@@ -31,7 +31,9 @@ server {
|
||||
ssl_certificate_key /etc/letsencrypt/live/moicen.com/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";
|
||||
set $huiwing_htyproc_rust "127.0.0.1:3004";
|
||||
set $htyuc "http://127.0.0.1:3000"; #htyuc host
|
||||
set $resty_loc "/usr/local/openresty";
|
||||
set $convert "/usr/bin/convert";
|
||||
@@ -133,6 +135,21 @@ server {
|
||||
location /api/v1/uc/ {
|
||||
proxy_pass http://127.0.0.1:3000/api/v1/uc/;
|
||||
}
|
||||
|
||||
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 {
|
||||
|
||||
@@ -8,6 +8,8 @@ server {
|
||||
ssl_certificate /etc/letsencrypt/live/moicen.com/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/moicen.com/privkey.pem; # managed by Certbot
|
||||
|
||||
set $huiwing_htyproc_rust "127.0.0.1:3004"; # huiwing 仓库 htyproc(Rust)
|
||||
|
||||
location /api/v1/proc/ {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
@@ -19,4 +21,16 @@ server {
|
||||
}
|
||||
proxy_pass http://127.0.0.1:8880/api/v1/proc/;
|
||||
}
|
||||
|
||||
location /api/v2/proc/ {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
add_header Access-Control-Allow-Headers 'Authorization,HtyAdminToken,HtySudoerToken,HtyHost,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Max-Age 86400 always;
|
||||
if ($request_method = 'OPTIONS') {
|
||||
return 200;
|
||||
}
|
||||
proxy_pass http://$huiwing_htyproc_rust/api/v1/proc/;
|
||||
}
|
||||
}
|
||||
|
||||
+15
-1
@@ -10,7 +10,9 @@ server {
|
||||
ssl_certificate /etc/letsencrypt/live/moicen.com/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/moicen.com/privkey.pem; # managed by Certbot
|
||||
|
||||
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 $task_server_rust "http://$huiwing_htyts_rust";
|
||||
set $htyuc "http://127.0.0.1:3000"; #htyuc host
|
||||
set $resty_loc "/usr/local/openresty";
|
||||
|
||||
@@ -26,6 +28,18 @@ server {
|
||||
}
|
||||
proxy_pass http://127.0.0.1:8080/api/v1/ts/;
|
||||
}
|
||||
|
||||
location /api/v2/ts/ {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||
add_header Access-Control-Allow-Headers 'Authorization,HtyAdminToken,HtySudoerToken,HtyHost,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Max-Age 86400 always;
|
||||
if ($request_method = 'OPTIONS') {
|
||||
return 200;
|
||||
}
|
||||
proxy_pass http://$huiwing_htyts_rust/api/v1/ts/;
|
||||
}
|
||||
}
|
||||
|
||||
# server {
|
||||
|
||||
Reference in New Issue
Block a user