فهرست منبع

feat: 添加生产配置

wuwenyi 6 روز پیش
والد
کامیت
d8a2580774
2فایلهای تغییر یافته به همراه31 افزوده شده و 11 حذف شده
  1. 31 0
      src/main/resources/application-prd.yml
  2. 0 11
      src/main/resources/application.yml

+ 31 - 0
src/main/resources/application-prd.yml

@@ -0,0 +1,31 @@
+mybatis-plus:
+  mapper-locations: classpath*:/mapper/**/*.xml
+  configuration:
+    map-underscore-to-camel-case: true
+    # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl  # 去掉,使用默认 SLF4J,只输出 SQL 不输出结果
+  global-config:
+    db-config:
+      id-type: auto
+      logic-delete-field: deleted
+      logic-delete-value: 1
+      logic-not-delete-value: 0
+
+jwt:
+  # 测试环境密钥仅用于本地/CI,禁止用于生产;生产请通过环境变量 JWT_SECRET 注入
+  secret: ${JWT_SECRET:qqflow-test-secret-key-2024-min-32chars}
+  expiration: 86400000
+
+logging:
+  level:
+    root: info
+    com.qqflow.engine: info
+
+
+# 企微(后面要修改)
+enterprise-wechat:
+  sCorp-id: ww76b6c51c3935e90d
+  token: jGgY9aLKA
+  encoding-a-eSKey: IycRI8M3tgTIHrFiwWnYWJn9I1o8iIsQrhNy8M4MWnT
+  suite-id: dk0580416972e402b8
+  suite-secret: 3aV48BTZHxDBeltZgdiRAUhttqsE5RxNs5pzElGhHHg
+  agent-id: 1000095

+ 0 - 11
src/main/resources/application.yml

@@ -8,17 +8,6 @@ spring:
     name: qqflowengine-backend
 #      schema-locations: classpath:schema-mysql.sql
 #      data-locations: classpath:data-mysql.sql
-  redis:
-    host: localhost
-    port: 6379
-    password:
-    database: 0
-    timeout: 10s
-    lettuce:
-      pool:
-        max-active: 8
-        max-idle: 8
-        min-idle: 0
   servlet:
     multipart:
       max-file-size: 10MB