From ce7536df9f82833044c9cbc479f0de42de2beffe Mon Sep 17 00:00:00 2001 From: 抓蛙师 <770492966@qq.com> Date: 星期四, 14 七月 2022 19:15:17 +0800 Subject: [PATCH] !201 redission处理增加前缀 * redission处理判断无前缀则不处理 * redission处理增加前缀 --- script/docker/nginx/nginx.conf | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/script/docker/nginx/nginx.conf b/script/docker/nginx/nginx.conf index 07df783..e9630aa 100644 --- a/script/docker/nginx/nginx.conf +++ b/script/docker/nginx/nginx.conf @@ -23,16 +23,16 @@ upstream server { ip_hash; - server 172.30.0.60:8080; - server 172.30.0.61:8080; + server 127.0.0.1:8080; + server 127.0.0.1:8081; } upstream monitor-admin { - server 172.30.0.90:9090; + server 127.0.0.1:9090; } upstream xxljob-admin { - server 172.30.0.92:9100; + server 127.0.0.1:9100; } server { @@ -62,6 +62,11 @@ # return 200 '{"msg":"婕旂ず妯″紡锛屼笉鍏佽鎿嶄綔","code":500}'; # } + # 闄愬埗澶栫綉璁块棶鍐呯綉 actuator 鐩稿叧璺緞 + location ~ ^(/[^/]*)?/actuator(/.*)?$ { + return 403; + } + location / { root /usr/share/nginx/html; try_files $uri $uri/ /index.html; -- Gitblit v1.9.3