update 优化 nginx 限制外网访问内网 actuator 相关路径

2.X
疯狂的狮子Li 2022-06-27 23:01:59 +08:00
parent 0cd54aae20
commit 58b8446416
1 changed files with 5 additions and 0 deletions

View File

@ -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;