From 7787668092598cf30da69870c9a0183acfba4d31 Mon Sep 17 00:00:00 2001 From: yidl Date: Sat, 28 Jun 2025 23:03:36 +0800 Subject: [PATCH] =?UTF-8?q?https=20=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf.gateway | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nginx.conf.gateway b/nginx.conf.gateway index e1dc95f..599ec31 100644 --- a/nginx.conf.gateway +++ b/nginx.conf.gateway @@ -34,7 +34,6 @@ http { # 认证中心 (IdentityServer4) upstream auth_server { server sys-api:19902; - proxy_ssl_verify off; # 关闭证书验证 } # Sys 系统 API @@ -94,18 +93,22 @@ http { 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; + + proxy_ssl_verify off; # 关闭证书验证 } # 1. 认证中心 (IdentityServer4) 路由 # 匹配所有认证相关的路径 location ~ ^/(connect|Account)/ { proxy_pass https://auth_server; + proxy_ssl_verify off; # 关闭证书验证 } # 2. Sys API 路由 location /api/sys/ { # 将 /api/sys/path -> http://sys_api/api/sys/path - proxy_pass http://sys_api; + proxy_pass https://sys_api; + proxy_ssl_verify off; # 关闭证书验证 } # 3. Lmg API 路由