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 路由