浏览代码

:wrench: 修改配置文件

冷冷 7 年之前
父节点
当前提交
7362c5fce3

+ 1 - 1
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'

+ 9 - 0
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:

+ 7 - 0
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: