From 686068c8ed0137cc937a4894f3e110c58ed5b8c8 Mon Sep 17 00:00:00 2001
From: zendwang <wangzhenxian@idadt.com>
Date: 星期一, 04 七月 2022 11:30:43 +0800
Subject: [PATCH] update 优化魔法值

---
 script/docker/nginx/nginx.conf |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/script/docker/nginx/nginx.conf b/script/docker/nginx/nginx.conf
index 07df783..ecf7195 100644
--- a/script/docker/nginx/nginx.conf
+++ b/script/docker/nginx/nginx.conf
@@ -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