From 58b8446416b1e6b3fc4f1732353f4793eb681110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Mon, 27 Jun 2022 23:01:59 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20nginx=20=E9=99=90?= =?UTF-8?q?=E5=88=B6=E5=A4=96=E7=BD=91=E8=AE=BF=E9=97=AE=E5=86=85=E7=BD=91?= =?UTF-8?q?=20actuator=20=E7=9B=B8=E5=85=B3=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/nginx/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index 9a7a9bbd..e3a260b8 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -55,6 +55,11 @@ http { # return 200 '{"msg":"演示模式,不允许操作","code":500}'; # } + # 限制外网访问内网 actuator 相关路径 + location ~ ^(/[^/]*)?/actuator(/.*)?$ { + return 403; + } + location / { root /usr/share/nginx/html; try_files $uri $uri/ /index.html;