application-pre.yml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. server:
  2. port: 8082
  3. undertow:
  4. buffer-size: 1024
  5. direct-buffers: true
  6. max-http-header-size: 8192
  7. spring:
  8. servlet:
  9. multipart:
  10. max-file-size: 50MB
  11. mail:
  12. host: smtp.163.com
  13. username: yinheluxiangju@163.com
  14. password: CLQPJPRRUERGTDXO
  15. protocol: smtp
  16. properties.mail.smtp.auth: true
  17. properties.mail.smtp.port: 465
  18. properties.mail.smtp.starttls.enable: true
  19. properties.mail.smtp.starttls.required: true
  20. properties.mail.smtp.ssl.enable: true
  21. default-encoding: utf-8
  22. datasource:
  23. type: com.zaxxer.hikari.HikariDataSource
  24. url: jdbc:mysql://sh-cdb-4tdnmrqa.sql.tencentcdb.com:63893/yhlxj_pre?useAffectedRows=true
  25. username: yhlxj
  26. password: yhlxj123
  27. platform: mysql
  28. continue-on-error: false
  29. driver-class-name: com.mysql.cj.jdbc.Driver
  30. hikari:
  31. pool-name: hikariCP-mysql-
  32. maximum-pool-size: 10
  33. minimum-idle: 6
  34. idle-timeout: 180000
  35. max-lifetime: 600000
  36. read-only: false
  37. connection-timeout: 30000
  38. connection-test-query: SELECT 1
  39. # # 以下配置推荐mysql 5.7.27+ 或 8.0.18+
  40. # https://cdn.oreillystatic.com/en/assets/1/event/21/Connector_J%20Performance%20Gems%20Presentation.pdf
  41. data-source-properties: {
  42. useSSL: false,
  43. useAffectedRows: true,
  44. useUnicode: true,
  45. characterEncoding: utf8,
  46. connectTimeout: 30000,
  47. socketTimeout: 20000,
  48. # 服务端缓存PrepStmts
  49. useServerPrepStmts: true,
  50. cachePrepStmts: true,
  51. # 官方推荐250-500
  52. prepStmtCacheSize: 512,
  53. # 官方推荐2048
  54. prepStmtCacheSqlLimit: 2048,
  55. cacheServerConfiguration: true,
  56. useLocalSessionState: true,
  57. rewriteBatchedStatements: true,
  58. useLocalTransactionState: true,
  59. cacheResultSetMetadata: true,
  60. elideSetAutoCommits: true,
  61. maintainTimeStats: false,
  62. }
  63. redis:
  64. # Redis数据库索引(默认为 0)
  65. database: 3
  66. # Redis服务器地址
  67. host: 127.0.0.1
  68. # Redis服务器连接端口
  69. port: 63222
  70. # Redis 密码
  71. password: yinhe9913
  72. lettuce:
  73. pool:
  74. # 连接池中的最小空闲连接
  75. min-idle: 8
  76. # 连接池中的最大空闲连接
  77. max-idle: 500
  78. # 连接池最大连接数(使用负值表示没有限制)
  79. max-active: 2000
  80. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  81. max-wait: 10000
  82. # 连接超时时间(毫秒)
  83. timeout: 5000
  84. sa-token:
  85. # token名称 (同时也是cookie名称)
  86. token-name: satoken
  87. # token有效期,单位s 默认30天, -1代表永不过期
  88. timeout: 2592000
  89. # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
  90. activity-timeout: -1
  91. # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
  92. is-concurrent: true
  93. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  94. is-share: false
  95. # 同一账号最大登录数量
  96. maxLoginCount: 3
  97. # token风格
  98. token-style: uuid
  99. logging:
  100. config: classpath:config/logback.xml
  101. #mybatis
  102. mybatis:
  103. mapper-locations: classpath:mapper/*Mapper.xml
  104. executor-type: simple
  105. type-aliases-package: com.cyksj.dao.model
  106. configuration:
  107. local-cache-scope: statement
  108. cache-enabled: false
  109. #Bean Searcher 分页配置
  110. bean-searcher:
  111. params:
  112. pagination:
  113. default-size: 10
  114. page: start
  115. size: limit
  116. start: 1
  117. wechat:
  118. oldAppid: wxd58016eee53b6558
  119. appid: wx6cbc2de2a55e5579
  120. secret: 2ab6340e7787ab24de9f29094dee9d24
  121. domain: https://nf.video/8082/api/
  122. #默认微信商户
  123. shopid: 1634772026
  124. shopKey: p2B8BAKi2V3PgMDSSez82V67aIvMKBt5
  125. payMsg: 银河录像局
  126. wx-login:
  127. appid: wx7c5494c38c6a78bd
  128. secret: 95c7c542a583b42840765d758ec49bf5
  129. redirectUri: https://nf.video/8082/api/auth/wx/authLogin/baseRedirect
  130. loginUrl: https://nf.video
  131. cpsRedirectUri: https://nf.video/8082/api/cps/manage/wx/authLogin/baseRedirect
  132. cpsLoginUrl: https://cps.nf.video/yinhe/cps/loginNexte
  133. yhShopRedirectUri: https://nf.video/8082/api/yhShop/manage/wx/authLogin/baseRedirect
  134. yhShopLoginUrl: https://shop.liuliangbang.vip/mall/admin/loginNexte
  135. baRedirectUrl: https://nf.video/8082/api/applets/market/task/bind/wx/baseRedirect
  136. cpsWebRedirectUri: https://inside.liuliangbang.vip/yinhe/cps/homePage
  137. remark: 银河录像网页微信登录
  138. wx-shop-login:
  139. appid: wx7c5494c38c6a78bd #todo
  140. secret: 95c7c542a583b42840765d758ec49bf5 #todo
  141. redirectUri: https://shop.liuliangbang.vip/8082/api/auth/wx/authLogin/baseRedirect
  142. loginUrl: https://shop.liuliangbang.vip/
  143. remark: 小店店铺网页微信授权
  144. yhlx:
  145. corpId: ww9c0ccaad2e9d3822
  146. corpSecret: Ov0mlArSItBrs9EuOMt5Ou_faGdplDDIvPgIhgup51E
  147. encodingAESKey: bqoACJutQEgW7KOgBoezuQkk7y2HQSyRp1sQ8qnAi6C
  148. token: 2e0aWIfBewWNN5BNMq9cBeLf9x
  149. domain: https://nf.video/8082/api/
  150. #银河录像局小程序
  151. yhmini:
  152. appid: wx383c483d3bcf155a
  153. secret: bf6ca029a3102f390486a7a14b218b06
  154. #银河录像局大学生认证小程序
  155. certmini:
  156. appid: wx16e441d61fa3fd8a
  157. secret: edc2e8ed29a45d6ba266a63bc7ffc2b5
  158. #广告投放小程序
  159. advertisement:
  160. appId: wx895f960ea6b8c5d0
  161. secret: 19b5f5121bc7cc1bc010ee7c4ac509e9
  162. shopId: 1644299849
  163. shopKey: 5y5ZScTJGm0q0umHQOD4r3EfjRvCioUx
  164. notify: https://nf.video/8082/api/
  165. #广告投放公众号
  166. advertisementwxapp:
  167. appId: wx6158deb06d316e0b
  168. secret: 44c1e7431099fc0bd21dc320822b0108
  169. shopId: 1644299849
  170. shopKey: 5y5ZScTJGm0q0umHQOD4r3EfjRvCioUx
  171. notify: https://xue.niupian.com.cn/8082/api/
  172. chatgpt:
  173. domain: "https://gpt.galaxydvd.com"
  174. car:
  175. domain: "https://car.galaxydvd.com"
  176. smsVerify:
  177. apikey: bc0737b7339ab0f275f954a161fdb313
  178. shoppingApikey: 72d4ff765b6c962f35c9a4125100680d
  179. midjourney:
  180. url: https://nf.video
  181. drawUrl: https://nf.video/drawTest/web/