From 883717856a168d183c8dcfc92ce463d626a3a92a Mon Sep 17 00:00:00 2001 From: ronger Date: Tue, 21 Mar 2023 14:25:27 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E9=9B=86=E6=88=90=20actuator?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/rymcu/forest/config/ShiroConfig.java | 1 + src/main/resources/application.yml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/main/java/com/rymcu/forest/config/ShiroConfig.java b/src/main/java/com/rymcu/forest/config/ShiroConfig.java index 0de5a65..4b2a47e 100644 --- a/src/main/java/com/rymcu/forest/config/ShiroConfig.java +++ b/src/main/java/com/rymcu/forest/config/ShiroConfig.java @@ -33,6 +33,7 @@ public class ShiroConfig { shiroFilterFactoryBean.setFilters(linkedHashMap); Map filterChainDefinitionMap = new LinkedHashMap(); + filterChainDefinitionMap.put("/actuator/**", "anon"); filterChainDefinitionMap.put("/api/v1/console/**", "anon"); filterChainDefinitionMap.put("/api/v1/article/detail/**", "anon"); filterChainDefinitionMap.put("/api/v1/topic/**", "anon"); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 6c1d560..5970496 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -36,6 +36,8 @@ spring: port: 465 username: # 邮箱 password: # 密码 + application: + name: forest wx: open: componentAppId: # @@ -66,10 +68,16 @@ server: port: 8099 servlet: context-path: /forest + max-http-header-size: 1048576 + shutdown: graceful + tomcat: + reject-illegal-header: false version: 1.0 resource: domain: http://yourdomain.com # 网站域名 file-path: http://yourdomain.com # 上传文件前缀域名 pic-path: /yoursrc/xx/nebula/static # 上传文件存储地址 answer-api-url: https://test.rymcu.com/subject/question +openai: + token: # Open Ai Key