diff --git a/pigx-config/src/main/resources/config/application-dev.yml b/pigx-config/src/main/resources/config/application-dev.yml index d5a55b55e..f6b0645e2 100644 --- a/pigx-config/src/main/resources/config/application-dev.yml +++ b/pigx-config/src/main/resources/config/application-dev.yml @@ -70,7 +70,7 @@ mybatis-plus: swagger: title: 'PigX Swagger API' description: '全宇宙最牛逼的Spring Cloud微服务开发脚手架' - version: '1.3.0' + version: '1.4.0' license: 'Powered By PigX' licenseUrl: 'https://gitee.com/log4j/pig/wikis' terms-of-service-url: 'https://gitee.wang/pig/pigx' diff --git a/pigx-config/src/main/resources/config/pigx-daemon-dev.yml b/pigx-config/src/main/resources/config/pigx-daemon-dev.yml index 9fa56a21f..c20521c58 100644 --- a/pigx-config/src/main/resources/config/pigx-daemon-dev.yml +++ b/pigx-config/src/main/resources/config/pigx-daemon-dev.yml @@ -1,3 +1,12 @@ +## spring security 配置 +security: + oauth2: + client: + client-id: daemon + client-secret: daemon + scope: server + +## 定时任务 spring: # 保存定时任务的数据源 datasource: diff --git a/pigx-config/src/main/resources/config/pigx-gateway-dev.yml b/pigx-config/src/main/resources/config/pigx-gateway-dev.yml index a9467a58d..c57d6d48f 100644 --- a/pigx-config/src/main/resources/config/pigx-gateway-dev.yml +++ b/pigx-config/src/main/resources/config/pigx-gateway-dev.yml @@ -46,6 +46,13 @@ spring: - Path=/gen/** filters: - StripPrefix=1 + # 定时任务模块 + - id: pigx-daemon + uri: lb://pigx-daemon + predicates: + - Path=/daemon/** + filters: + - StripPrefix=1 security: encode: