application-prod.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ################ 生产环境配置 ################
  2. # 端口
  3. server:
  4. port: 10041
  5. spring:
  6. # 数据源配置
  7. datasource:
  8. type: com.alibaba.druid.pool.DruidDataSource
  9. #url: jdbc:mysql://local.dev33.cn:3306/xmnk-sso?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC
  10. url: jdbc:mysql://127.0.0.1:3306/xmnk-sso?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC
  11. username: xmnk-sso
  12. password: EyrTP8bBJ4JdCiJ7
  13. # 是否打开sql监控台 (生产环境请务必关闭此选项)
  14. druid:
  15. stat-view-servlet:
  16. enabled: false
  17. web-stat-filter:
  18. enabled: false
  19. filter:
  20. config:
  21. enabled: false
  22. # redis配置
  23. redis:
  24. # Redis数据库索引(默认为0)
  25. database: 9
  26. # Redis服务器地址
  27. #host: local.dev33.cn
  28. host: 127.0.0.1
  29. # Redis服务器连接端口
  30. port: 6379
  31. # Redis服务器连接密码(默认为空)
  32. password: 123456
  33. # 连接超时时间
  34. timeout: 10s
  35. lettuce:
  36. pool:
  37. # 连接池最大连接数
  38. max-active: 200
  39. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  40. max-wait: -1ms
  41. # 连接池中的最大空闲连接
  42. max-idle: 10
  43. # 连接池中的最小空闲连接
  44. min-idle: 0
  45. # 项目自定义配置
  46. myconfig:
  47. # 本项目部署到的服务器域名(文件上传等等模块 要用到)
  48. #domain: http://local.dev33.cn
  49. domain: https://sso.xmnk.cn