From 8c6bca8667f327f779d547e5b2227718159f354a Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 14 七月 2025 15:08:46 +0800 Subject: [PATCH] 修改nginx.conf --- docker/nginx/conf/nginx.conf | 9 +++++++++ sm.txt | 1 + 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/docker/nginx/conf/nginx.conf b/docker/nginx/conf/nginx.conf index dc00e21..efc5ae4 100644 --- a/docker/nginx/conf/nginx.conf +++ b/docker/nginx/conf/nginx.conf @@ -35,6 +35,15 @@ proxy_pass http://gateway:8001/; } + location /system { + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header REMOTE-HOST $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + + proxy_pass http://gateway:8001/system; + } + # actuator if ($request_uri ~ "/actuator") { return 403; diff --git a/sm.txt b/sm.txt index d71c2ef..6856ab4 100644 --- a/sm.txt +++ b/sm.txt @@ -13,6 +13,7 @@ http://localhost:8002/dir/selectDir?id=1 http://192.168.11.203:8848/nacos +http://192.168.11.203:8081/api/system/swagger-ui.html ------------------------------------------------------------------- PIE-Engine Server锛歅ixel Information Expert 閬ユ劅/GIS鏁版嵁姹囬泦銆佺鐞嗐�佹不鐞嗐�佸彂甯冧笌鍏变韩鐨勮兘鍔涳紝鏁版嵁鎺ュ叆銆佺紪鐩�佸瓨鍌ㄣ�佸叡浜�佸彂甯冧笌搴旂敤銆� -- Gitblit v1.9.3