2025-06-28 17:52:44 +08:00
|
|
|
|
error_log /var/log/nginx/error.log debug;
|
2025-06-22 14:46:32 +08:00
|
|
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
|
|
|
|
events {
|
|
|
|
|
worker_connections 1024;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
http {
|
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
|
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
|
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
|
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
|
access_log /var/log/nginx/access.log main;
|
|
|
|
|
|
|
|
|
|
sendfile on;
|
2025-06-24 00:18:46 +08:00
|
|
|
|
keepalive_timeout 65;
|
2025-06-24 00:56:09 +08:00
|
|
|
|
# Gzip 压缩1
|
2025-06-24 00:18:46 +08:00
|
|
|
|
gzip on;
|
|
|
|
|
gzip_vary on;
|
|
|
|
|
gzip_proxied any;
|
|
|
|
|
gzip_comp_level 6;
|
|
|
|
|
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
|
|
|
|
|
|
|
|
# Sys 系统 API
|
2025-06-22 14:46:32 +08:00
|
|
|
|
upstream sys_api {
|
2025-07-02 12:44:41 +08:00
|
|
|
|
server sys-api:8001;
|
2025-06-22 14:46:32 +08:00
|
|
|
|
}
|
2025-06-24 00:18:46 +08:00
|
|
|
|
|
|
|
|
|
# Lmg 系统 API
|
2025-06-22 14:46:32 +08:00
|
|
|
|
upstream lmg_api {
|
2025-07-04 00:47:40 +08:00
|
|
|
|
server lmg-api:19904;
|
2025-06-22 14:46:32 +08:00
|
|
|
|
}
|
2025-06-24 00:18:46 +08:00
|
|
|
|
|
|
|
|
|
# Sys 系统 UI
|
|
|
|
|
upstream sys_ui {
|
|
|
|
|
server sys-ui:80;
|
2025-06-22 14:46:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
2025-06-24 00:18:46 +08:00
|
|
|
|
# Lmg 系统 UI
|
|
|
|
|
upstream lmg_ui {
|
|
|
|
|
server lmg-ui:80;
|
|
|
|
|
}
|
2025-08-25 21:16:53 +08:00
|
|
|
|
|
|
|
|
|
# healthy
|
|
|
|
|
upstream healthy_ui {
|
|
|
|
|
server healthy-ui:80;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
upstream healthy_api {
|
|
|
|
|
server healthy-api:19906;
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-29 16:35:53 +08:00
|
|
|
|
# -------------------------------
|
|
|
|
|
# 2. Sys系统服务 (8000)
|
|
|
|
|
# -------------------------------
|
2025-06-22 14:46:32 +08:00
|
|
|
|
server {
|
2025-06-29 16:35:53 +08:00
|
|
|
|
listen 8000 ssl;
|
|
|
|
|
server_name 106.52.199.114;
|
2025-08-17 14:32:33 +08:00
|
|
|
|
client_max_body_size 100M; # 允许最大 100MB 的请求体
|
|
|
|
|
|
2025-06-29 17:43:34 +08:00
|
|
|
|
ssl_certificate /etc/nginx/certs/gateway.crt;
|
2025-06-28 22:44:07 +08:00
|
|
|
|
ssl_certificate_key /etc/nginx/certs/gateway.key;
|
2025-06-29 17:43:34 +08:00
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
|
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
|
|
|
|
ssl_session_cache shared:SSL:10m;
|
|
|
|
|
ssl_session_timeout 10m;
|
|
|
|
|
ssl_verify_client off; # ↓ 允许自签名证书
|
|
|
|
|
ssl_verify_depth 0;
|
2025-06-29 16:35:53 +08:00
|
|
|
|
# API路由
|
2025-06-24 00:18:46 +08:00
|
|
|
|
location /api/sys/ {
|
2025-06-29 00:04:06 +08:00
|
|
|
|
proxy_pass https://sys_api/api/;
|
2025-06-29 16:35:53 +08:00
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_ssl_verify off;
|
|
|
|
|
proxy_set_header Authorization $http_authorization;
|
|
|
|
|
}
|
|
|
|
|
# 认证服务代理
|
|
|
|
|
location /auth/ {
|
|
|
|
|
# 关键 1: 移除路径中的 /auth/ 前缀
|
|
|
|
|
proxy_pass https://sys_api/; # 末尾的 / 确保路径替换
|
|
|
|
|
|
2025-06-29 00:04:06 +08:00
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_ssl_session_reuse off;
|
|
|
|
|
proxy_ssl_verify off;
|
2025-06-29 16:35:53 +08:00
|
|
|
|
# 关键 2: 覆盖 Host 头,模拟 Vite 的 changeOrigin=true
|
|
|
|
|
|
2025-08-20 01:24:12 +08:00
|
|
|
|
proxy_set_header Host 106.52.199.114:8001;
|
|
|
|
|
proxy_set_header X-Forwarded-Host 106.52.199.114:8001;
|
2025-08-17 22:58:11 +08:00
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2025-08-17 22:58:11 +08:00
|
|
|
|
|
2025-06-29 00:04:06 +08:00
|
|
|
|
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
2025-07-01 01:39:35 +08:00
|
|
|
|
# 其他标准代理头
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
|
|
|
|
|
# 关键 4: 重写后端返回的 Location 头(解决重定向端口丢失)
|
|
|
|
|
proxy_redirect https://sys_api:19902/ http://$host:$server_port/auth/;
|
|
|
|
|
proxy_redirect https://sys_api/ http://$host:$server_port/auth/;
|
|
|
|
|
}
|
|
|
|
|
location /connect/ {
|
|
|
|
|
# 关键 1: 移除路径中的 /auth/ 前缀
|
|
|
|
|
proxy_pass https://sys_api/; # 末尾的 / 确保路径替换
|
|
|
|
|
|
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_ssl_session_reuse off;
|
|
|
|
|
proxy_ssl_verify off;
|
|
|
|
|
# 关键 2: 覆盖 Host 头,模拟 Vite 的 changeOrigin=true
|
|
|
|
|
|
2025-08-20 01:24:12 +08:00
|
|
|
|
proxy_set_header Host 106.52.199.114:8001;
|
|
|
|
|
proxy_set_header X-Forwarded-Host 106.52.199.114:8001;
|
2025-08-17 22:58:11 +08:00
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2025-08-17 22:58:11 +08:00
|
|
|
|
|
2025-07-01 01:39:35 +08:00
|
|
|
|
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
2025-06-29 16:35:53 +08:00
|
|
|
|
# 其他标准代理头
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
|
|
|
|
|
# 关键 4: 重写后端返回的 Location 头(解决重定向端口丢失)
|
|
|
|
|
proxy_redirect https://sys_api:19902/ http://$host:$server_port/auth/;
|
|
|
|
|
proxy_redirect https://sys_api/ http://$host:$server_port/auth/;
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-29 17:11:03 +08:00
|
|
|
|
location = /auth/.well-known/openid-configuration {
|
|
|
|
|
proxy_pass https://sys_api/.well-known/openid-configuration;
|
2025-08-17 22:58:11 +08:00
|
|
|
|
# 核心:
|
2025-08-20 01:24:12 +08:00
|
|
|
|
proxy_set_header Host 106.52.199.114:8001;
|
|
|
|
|
proxy_set_header X-Forwarded-Host 106.52.199.114:8001;
|
2025-08-17 22:58:11 +08:00
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2025-06-29 17:11:03 +08:00
|
|
|
|
# 动态修改返回的JSON中的URL
|
|
|
|
|
proxy_set_header Accept-Encoding "";
|
|
|
|
|
sub_filter_types application/json;
|
|
|
|
|
sub_filter_once off;
|
|
|
|
|
sub_filter 'https://sys-api:19902' 'https://$host:8001';
|
|
|
|
|
sub_filter 'https://sys_api' 'https://$host:8001';
|
2025-07-31 23:07:10 +08:00
|
|
|
|
}
|
|
|
|
|
# UI前端路由
|
|
|
|
|
location / {
|
|
|
|
|
proxy_pass http://sys_ui;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-31 23:25:08 +08:00
|
|
|
|
location ~* ^/Upload/(.*)$ {
|
2025-07-04 21:43:45 +08:00
|
|
|
|
|
2025-07-31 23:25:08 +08:00
|
|
|
|
# 代理到后端,此时的请求路径已经是重写后的(即没有 /Upload/ 前缀的)
|
2025-07-31 23:32:37 +08:00
|
|
|
|
proxy_pass https://sys_api; # 注意:如果 sys_api 后端期望收到 /upload/ 前缀,这里加上。如果后端只期望收到 /path/to/file.jpg,这里就写 https://sys_api;
|
2025-07-31 23:25:08 +08:00
|
|
|
|
|
2025-07-04 21:43:45 +08:00
|
|
|
|
proxy_ssl_server_name on;
|
2025-07-31 23:25:08 +08:00
|
|
|
|
proxy_ssl_session_reuse off;
|
2025-07-04 21:43:45 +08:00
|
|
|
|
proxy_ssl_verify off;
|
2025-07-31 23:25:08 +08:00
|
|
|
|
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
2025-07-04 21:43:45 +08:00
|
|
|
|
}
|
2025-06-29 16:35:53 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -------------------------------
|
|
|
|
|
# 3. Lmg系统服务 (8002)
|
|
|
|
|
# -------------------------------
|
|
|
|
|
server {
|
|
|
|
|
listen 8002 ssl;
|
|
|
|
|
server_name 106.52.199.114;
|
2025-08-17 14:32:33 +08:00
|
|
|
|
client_max_body_size 100M; # 允许最大 100MB 的请求体
|
2025-06-29 17:43:34 +08:00
|
|
|
|
ssl_certificate /etc/nginx/certs/gateway.crt;
|
2025-06-29 16:35:53 +08:00
|
|
|
|
ssl_certificate_key /etc/nginx/certs/gateway.key;
|
2025-06-29 17:43:34 +08:00
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
|
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
|
|
|
|
ssl_session_cache shared:SSL:10m;
|
|
|
|
|
ssl_session_timeout 10m;
|
|
|
|
|
ssl_verify_client off; # ↓ 允许自签名证书
|
|
|
|
|
ssl_verify_depth 0;
|
2025-06-29 16:35:53 +08:00
|
|
|
|
# API路由
|
2025-06-24 00:18:46 +08:00
|
|
|
|
location /api/lmg/ {
|
2025-06-29 16:35:53 +08:00
|
|
|
|
proxy_pass https://lmg_api/api/;
|
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_ssl_verify off;
|
|
|
|
|
proxy_set_header Authorization $http_authorization;
|
|
|
|
|
}
|
2025-07-31 23:07:10 +08:00
|
|
|
|
|
|
|
|
|
# UI前端路由
|
|
|
|
|
location /{
|
|
|
|
|
proxy_pass http://lmg_ui/; # 注意末尾的/
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-29 16:35:53 +08:00
|
|
|
|
location /auth/ {
|
|
|
|
|
# 关键 1: 移除路径中的 /auth/ 前缀
|
|
|
|
|
proxy_pass https://sys_api/; # 末尾的 / 确保路径替换
|
|
|
|
|
|
2025-06-29 00:04:06 +08:00
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_ssl_session_reuse off;
|
|
|
|
|
proxy_ssl_verify off;
|
2025-06-29 16:35:53 +08:00
|
|
|
|
# 关键 2: 覆盖 Host 头,模拟 Vite 的 changeOrigin=true
|
2025-08-20 01:24:12 +08:00
|
|
|
|
proxy_set_header Host 106.52.199.114:8001;
|
|
|
|
|
proxy_set_header X-Forwarded-Host 106.52.199.114:8001;
|
2025-08-18 12:01:15 +08:00
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2025-08-17 22:58:11 +08:00
|
|
|
|
|
2025-06-29 00:04:06 +08:00
|
|
|
|
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
2025-06-29 16:35:53 +08:00
|
|
|
|
# 其他标准代理头
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
|
|
|
|
|
# 关键 4: 重写后端返回的 Location 头(解决重定向端口丢失)
|
|
|
|
|
proxy_redirect https://sys_api:19902/ http://$host:$server_port/auth/;
|
|
|
|
|
proxy_redirect https://sys_api/ http://$host:$server_port/auth/;
|
2025-06-22 14:46:32 +08:00
|
|
|
|
}
|
2025-06-29 17:11:03 +08:00
|
|
|
|
location = /auth/.well-known/openid-configuration {
|
|
|
|
|
proxy_pass https://sys_api/.well-known/openid-configuration;
|
2025-08-17 22:58:11 +08:00
|
|
|
|
|
2025-08-20 01:24:12 +08:00
|
|
|
|
proxy_set_header Host 106.52.199.114:8001;
|
|
|
|
|
proxy_set_header X-Forwarded-Host 106.52.199.114:8001;
|
2025-08-17 22:58:11 +08:00
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2025-06-29 17:11:03 +08:00
|
|
|
|
# 动态修改返回的JSON中的URL
|
|
|
|
|
proxy_set_header Accept-Encoding "";
|
|
|
|
|
sub_filter_types application/json;
|
|
|
|
|
sub_filter_once off;
|
|
|
|
|
sub_filter 'https://sys-api:19902' 'https://$host:8001';
|
|
|
|
|
sub_filter 'https://sys_api' 'https://$host:8001';
|
|
|
|
|
}
|
2025-07-04 21:43:45 +08:00
|
|
|
|
|
2025-06-29 16:35:53 +08:00
|
|
|
|
location /api/sys/ {
|
|
|
|
|
proxy_pass https://sys_api/api/;
|
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_ssl_verify off;
|
|
|
|
|
proxy_set_header Authorization $http_authorization;
|
2025-06-24 00:18:46 +08:00
|
|
|
|
}
|
2025-07-31 23:25:08 +08:00
|
|
|
|
location ~* ^/Upload/(.*)$ {
|
2025-07-04 21:43:45 +08:00
|
|
|
|
|
2025-07-31 23:54:07 +08:00
|
|
|
|
proxy_pass https://sys_api;
|
2025-07-31 23:25:08 +08:00
|
|
|
|
|
2025-07-04 21:43:45 +08:00
|
|
|
|
proxy_ssl_server_name on;
|
2025-07-31 23:25:08 +08:00
|
|
|
|
proxy_ssl_session_reuse off;
|
2025-07-04 21:43:45 +08:00
|
|
|
|
proxy_ssl_verify off;
|
2025-07-31 23:25:08 +08:00
|
|
|
|
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
2025-07-04 21:43:45 +08:00
|
|
|
|
}
|
2025-08-15 14:01:14 +08:00
|
|
|
|
|
|
|
|
|
location ~* ^/LMGUpload/(.*)$ {
|
|
|
|
|
|
|
|
|
|
proxy_pass https://lmg_api;
|
|
|
|
|
|
2025-08-25 21:16:53 +08:00
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_ssl_session_reuse off;
|
|
|
|
|
proxy_ssl_verify off;
|
|
|
|
|
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-08-25 21:22:53 +08:00
|
|
|
|
|
|
|
|
|
|
2025-08-25 21:16:53 +08:00
|
|
|
|
# -------------------------------
|
|
|
|
|
# 3. Healthy系统服务 (8003)
|
|
|
|
|
# -------------------------------
|
|
|
|
|
server {
|
|
|
|
|
listen 8003 ssl;
|
|
|
|
|
server_name 106.52.199.114;
|
|
|
|
|
client_max_body_size 100M; # 允许最大 100MB 的请求体
|
|
|
|
|
ssl_certificate /etc/nginx/certs/gateway.crt;
|
|
|
|
|
ssl_certificate_key /etc/nginx/certs/gateway.key;
|
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
|
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
|
|
|
|
ssl_session_cache shared:SSL:10m;
|
|
|
|
|
ssl_session_timeout 10m;
|
|
|
|
|
ssl_verify_client off; # ↓ 允许自签名证书
|
|
|
|
|
ssl_verify_depth 0;
|
|
|
|
|
# API路由
|
|
|
|
|
location /api/healthy/ {
|
|
|
|
|
proxy_pass https://healthy_api/api/;
|
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_ssl_verify off;
|
|
|
|
|
proxy_set_header Authorization $http_authorization;
|
|
|
|
|
}
|
2025-08-29 21:30:11 +08:00
|
|
|
|
# API路由
|
2025-09-02 14:04:44 +08:00
|
|
|
|
location /sh05/ {
|
2025-08-29 21:30:11 +08:00
|
|
|
|
proxy_pass https://healthy_api/SH05/;
|
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_ssl_verify off;
|
|
|
|
|
proxy_set_header Authorization $http_authorization;
|
2025-09-01 22:05:35 +08:00
|
|
|
|
# 其他标准代理头
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2025-08-29 21:30:11 +08:00
|
|
|
|
}
|
2025-08-25 21:16:53 +08:00
|
|
|
|
# UI前端路由
|
|
|
|
|
location /{
|
|
|
|
|
proxy_pass http://healthy_ui/; # 注意末尾的/
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /auth/ {
|
|
|
|
|
# 关键 1: 移除路径中的 /auth/ 前缀
|
|
|
|
|
proxy_pass https://sys_api/; # 末尾的 / 确保路径替换
|
|
|
|
|
|
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_ssl_session_reuse off;
|
|
|
|
|
proxy_ssl_verify off;
|
|
|
|
|
# 关键 2: 覆盖 Host 头,模拟 Vite 的 changeOrigin=true
|
2025-08-25 21:22:53 +08:00
|
|
|
|
proxy_set_header Host 106.52.199.114:8001;
|
|
|
|
|
proxy_set_header X-Forwarded-Host 106.52.199.114:8001;
|
2025-08-25 21:16:53 +08:00
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2025-08-25 21:22:53 +08:00
|
|
|
|
|
2025-08-25 21:16:53 +08:00
|
|
|
|
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
|
|
|
|
# 其他标准代理头
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
|
|
|
|
|
# 关键 4: 重写后端返回的 Location 头(解决重定向端口丢失)
|
|
|
|
|
proxy_redirect https://sys_api:19902/ http://$host:$server_port/auth/;
|
|
|
|
|
proxy_redirect https://sys_api/ http://$host:$server_port/auth/;
|
|
|
|
|
}
|
|
|
|
|
location = /auth/.well-known/openid-configuration {
|
|
|
|
|
proxy_pass https://sys_api/.well-known/openid-configuration;
|
2025-08-25 21:22:53 +08:00
|
|
|
|
|
|
|
|
|
proxy_set_header Host 106.52.199.114:8001;
|
|
|
|
|
proxy_set_header X-Forwarded-Host 106.52.199.114:8001;
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2025-08-25 21:16:53 +08:00
|
|
|
|
# 动态修改返回的JSON中的URL
|
|
|
|
|
proxy_set_header Accept-Encoding "";
|
|
|
|
|
sub_filter_types application/json;
|
|
|
|
|
sub_filter_once off;
|
|
|
|
|
sub_filter 'https://sys-api:19902' 'https://$host:8001';
|
|
|
|
|
sub_filter 'https://sys_api' 'https://$host:8001';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /api/sys/ {
|
|
|
|
|
proxy_pass https://sys_api/api/;
|
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_ssl_verify off;
|
|
|
|
|
proxy_set_header Authorization $http_authorization;
|
|
|
|
|
}
|
|
|
|
|
location ~* ^/Upload/(.*)$ {
|
|
|
|
|
|
|
|
|
|
proxy_pass https://sys_api;
|
|
|
|
|
|
2025-08-15 14:01:14 +08:00
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_ssl_session_reuse off;
|
|
|
|
|
proxy_ssl_verify off;
|
|
|
|
|
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
|
|
|
|
}
|
2025-08-25 21:22:53 +08:00
|
|
|
|
}
|
2025-06-22 14:46:32 +08:00
|
|
|
|
}
|