skyline 2 месяцев назад
Родитель
Сommit
22cad13541

+ 0 - 108
haha-miniapp/src/main/resources/application-dev.yml

@@ -1,108 +0,0 @@
-# 开发测试环境配置文件
-spring:
-  application:
-    name: haha-miniapp
-    
-  # 数据库配置(开发测试环境)
-  datasource:
-    url: jdbc:mysql://server.kuaiyuman.cn:3306/haha?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=true&requireSSL=true
-    username: root
-    password: KuaiyuMan/*-
-    driver-class-name: com.mysql.cj.jdbc.Driver
-    # 生产环境连接池优化
-    hikari:
-      minimum-idle: 5
-      maximum-pool-size: 20
-      max-lifetime: 1800000
-      idle-timeout: 300000
-      connection-timeout: 30000
-      connection-test-query: SELECT 1
-      keepalive-time: 30000
-      
-  # Redis 配置(开发测试环境)
-  data:
-    redis:
-      host: server.kuaiyuman.cn
-      port: 6379
-      password: "KtXA^Zx!TZmLEy(@JjB@2(TVG0kdy5)&"
-      database: 8
-      timeout: 10000
-      lettuce:
-        pool:
-          max-active: 20
-          max-wait: 3000
-          max-idle: 15
-          min-idle: 5
-          time-between-eviction-runs: 30000
-        shutdown-timeout: 100
-
-# 服务器配置(开发测试环境)
-server:
-  port: 7077
-  servlet:
-    context-path: /api
-  # SSL 配置(如果需要HTTPS)
-  # ssl:
-  #   enabled: true
-  #   key-store: classpath:keystore.p12
-  #   key-store-password: your_keystore_password
-  #   key-store-type: PKCS12
-
-# Sa-Token 配置(开发测试环境优化)
-sa-token:
-  # token 名称
-  token-name: accessToken
-  # token 有效期(单位:秒)- 30天
-  timeout: 2592000
-  # token 临时有效期(单位:秒)
-  active-timeout: -1
-  # 是否允许同一账号多地同时登录
-  is-concurrent: true
-  # 同一账号最大登录数量
-  max-login-count: 100
-  # token 风格
-  token-style: uuid
-  # 是否输出操作日志
-  is-log: true
-  # 生产环境额外配置
-  is-share: true  # 不共享token
-  is-read-header: true
-  is-read-cookie: false  # 禁用cookie,只使用header
-  is-lasting-cookie: false
-
-# 日志配置(生产环境)
-logging:
-  level:
-    root: INFO
-    com.haha.miniapp: INFO
-    cn.dev33.satoken: INFO
-  file:
-    path: /var/log/haha-miniapp
-    name: /var/log/haha-miniapp/haha-miniapp.log
-  pattern:
-    file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n"
-    console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n"
-
-# 微信相关配置(生产环境)
-wechat:
-  miniapp:
-    app-id: your_production_wechat_miniapp_appid
-    secret: your_production_wechat_miniapp_secret
-    token: your_production_wechat_miniapp_token
-    aes-key: your_production_wechat_miniapp_aes_key
-
-# 哈哈零兽配置(生产环境)
-haha:
-  api:
-    app-id: 2601051549145878
-    app-secret: 06e1be59332b00de0baad82002cdbcb5
-    base-url: http://api.hahabianli.com/
-
-management:
-  endpoints:
-    web:
-      exposure:
-        include: health,info,metrics
-  endpoint:
-    health:
-      show-details: when_authorized

+ 0 - 108
haha-miniapp/src/main/resources/application-prod.yml

@@ -1,108 +0,0 @@
-# 生产环境配置文件
-spring:
-  application:
-    name: haha-miniapp
-    
-  # 数据库配置(生产环境)
-  datasource:
-    url: jdbc:mysql://server.kuaiyuman.cn:3306/haha?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=true&requireSSL=true
-    username: root
-    password: KuaiyuMan/*-
-    driver-class-name: com.mysql.cj.jdbc.Driver
-    # 生产环境连接池优化
-    hikari:
-      minimum-idle: 5
-      maximum-pool-size: 20
-      max-lifetime: 1800000
-      idle-timeout: 300000
-      connection-timeout: 30000
-      connection-test-query: SELECT 1
-      keepalive-time: 30000
-      
-  # Redis 配置(生产环境)
-  data:
-    redis:
-      host: server.kuaiyuman.cn
-      port: 6379
-      password: "KtXA^Zx!TZmLEy(@JjB@2(TVG0kdy5)&"
-      database: 8
-      timeout: 10000
-      lettuce:
-        pool:
-          max-active: 20
-          max-wait: 3000
-          max-idle: 15
-          min-idle: 5
-          time-between-eviction-runs: 30000
-        shutdown-timeout: 100
-
-# 服务器配置(生产环境)
-server:
-  port: 7077
-  servlet:
-    context-path: /api
-  # SSL 配置(如果需要HTTPS)
-  # ssl:
-  #   enabled: true
-  #   key-store: classpath:keystore.p12
-  #   key-store-password: your_keystore_password
-  #   key-store-type: PKCS12
-
-# Sa-Token 配置(生产环境优化)
-sa-token:
-  # token 名称
-  token-name: accessToken
-  # token 有效期(单位:秒)- 30天
-  timeout: 2592000
-  # token 临时有效期(单位:秒)
-  active-timeout: -1
-  # 是否允许同一账号多地同时登录
-  is-concurrent: true
-  # 同一账号最大登录数量
-  max-login-count: 100
-  # token 风格
-  token-style: uuid
-  # 是否输出操作日志
-  is-log: true
-  # 生产环境额外配置
-  is-share: true  # 不共享token
-  is-read-header: true
-  is-read-cookie: false  # 禁用cookie,只使用header
-  is-lasting-cookie: false
-
-# 日志配置(生产环境)
-logging:
-  level:
-    root: INFO
-    com.haha.miniapp: INFO
-    cn.dev33.satoken: INFO
-  file:
-    path: /var/log/haha-miniapp
-    name: /var/log/haha-miniapp/haha-miniapp.log
-  pattern:
-    file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n"
-    console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n"
-
-# 微信相关配置(生产环境)
-wechat:
-  miniapp:
-    app-id: your_production_wechat_miniapp_appid
-    secret: your_production_wechat_miniapp_secret
-    token: your_production_wechat_miniapp_token
-    aes-key: your_production_wechat_miniapp_aes_key
-
-# 哈哈零兽配置(生产环境)
-haha:
-  api:
-    app-id: 2601051549145878
-    app-secret: 06e1be59332b00de0baad82002cdbcb5
-    base-url: http://api.hahabianli.com/
-
-management:
-  endpoints:
-    web:
-      exposure:
-        include: health,info,metrics
-  endpoint:
-    health:
-      show-details: when_authorized

+ 1 - 2
haha-miniapp/src/main/resources/application.yml

@@ -1,7 +1,6 @@
 spring:
   application:
     name: haha-miniapp
-    active: dev
 
   # 数据库配置
   datasource:
@@ -101,7 +100,7 @@ haha:
 # Sa-Token 配置
 sa-token:
   # token 名称(同时也是 cookie 名称)
-  token-name: accessToken
+  token-name: access_token
   # token 有效期(单位:秒)- 7天
   timeout: 604800
   # token 临时有效期(单位:秒)