From 1411750505b45f470679a486648af1d828ebcae7 Mon Sep 17 00:00:00 2001 From: yidl Date: Fri, 4 Jul 2025 21:43:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=99=84=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf.gateway | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/nginx.conf.gateway b/nginx.conf.gateway index b7a3ebf..c63461e 100644 --- a/nginx.conf.gateway +++ b/nginx.conf.gateway @@ -124,6 +124,20 @@ http { proxy_pass http://sys_ui; proxy_set_header Host $host; } + + location /upload/ { + proxy_pass https://sys_api/upload/; + proxy_ssl_server_name on; + proxy_ssl_verify off; + proxy_set_header Authorization $http_authorization; + } + + location /temporary_upload/ { + proxy_pass https://sys_api/upload/; + proxy_ssl_server_name on; + proxy_ssl_verify off; + proxy_set_header Authorization $http_authorization; + } } @@ -187,11 +201,26 @@ http { 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/upload/; + proxy_ssl_server_name on; + proxy_ssl_verify off; + proxy_set_header Authorization $http_authorization; + } + + location /temporary_upload/ { + proxy_pass https://sys_api/upload/; + proxy_ssl_server_name on; + proxy_ssl_verify off; + proxy_set_header Authorization $http_authorization; + } } }