集成 actuator

This commit is contained in:
ronger 2023-03-21 14:25:27 +08:00
parent 1b42ce8cf8
commit 883717856a
2 changed files with 9 additions and 0 deletions

View File

@ -33,6 +33,7 @@ public class ShiroConfig {
shiroFilterFactoryBean.setFilters(linkedHashMap); shiroFilterFactoryBean.setFilters(linkedHashMap);
Map<String, String> filterChainDefinitionMap = new LinkedHashMap<String, String>(); Map<String, String> filterChainDefinitionMap = new LinkedHashMap<String, String>();
filterChainDefinitionMap.put("/actuator/**", "anon");
filterChainDefinitionMap.put("/api/v1/console/**", "anon"); filterChainDefinitionMap.put("/api/v1/console/**", "anon");
filterChainDefinitionMap.put("/api/v1/article/detail/**", "anon"); filterChainDefinitionMap.put("/api/v1/article/detail/**", "anon");
filterChainDefinitionMap.put("/api/v1/topic/**", "anon"); filterChainDefinitionMap.put("/api/v1/topic/**", "anon");

View File

@ -36,6 +36,8 @@ spring:
port: 465 port: 465
username: # 邮箱 username: # 邮箱
password: # 密码 password: # 密码
application:
name: forest
wx: wx:
open: open:
componentAppId: # componentAppId: #
@ -66,10 +68,16 @@ server:
port: 8099 port: 8099
servlet: servlet:
context-path: /forest context-path: /forest
max-http-header-size: 1048576
shutdown: graceful
tomcat:
reject-illegal-header: false
version: 1.0 version: 1.0
resource: resource:
domain: http://yourdomain.com # 网站域名 domain: http://yourdomain.com # 网站域名
file-path: http://yourdomain.com # 上传文件前缀域名 file-path: http://yourdomain.com # 上传文件前缀域名
pic-path: /yoursrc/xx/nebula/static # 上传文件存储地址 pic-path: /yoursrc/xx/nebula/static # 上传文件存储地址
answer-api-url: https://test.rymcu.com/subject/question answer-api-url: https://test.rymcu.com/subject/question
openai:
token: # Open Ai Key