update 优化 nginx 限制外网访问内网 actuator 相关路径
parent
0cd54aae20
commit
58b8446416
|
|
@ -55,6 +55,11 @@ http {
|
||||||
# return 200 '{"msg":"演示模式,不允许操作","code":500}';
|
# return 200 '{"msg":"演示模式,不允许操作","code":500}';
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
# 限制外网访问内网 actuator 相关路径
|
||||||
|
location ~ ^(/[^/]*)?/actuator(/.*)?$ {
|
||||||
|
return 403;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue