diff --git a/docker/pig-ui.conf b/docker/pig-ui.conf index 701a20aa..d2332630 100755 --- a/docker/pig-ui.conf +++ b/docker/pig-ui.conf @@ -28,4 +28,9 @@ server { proxy_set_header Host $http_host; proxy_set_header from ""; } + + # 屏蔽所有敏感路径,不用改代码 + location ~* ^/(actuator|swagger-ui|v3/api-docs|swagger-resources|webjars|doc.html) { + return 403; # 禁止访问 + } }