From ac1d7aa69f66ec02f2909dd16b7e1ce6e68611b9 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期六, 09 七月 2022 12:57:46 +0800 Subject: [PATCH] update 优化 路由与 springfox 兼容问题 启用新路由方式 --- 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