拓恒统一认证授权服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

application-dev.yml 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. spring:
  2. security:
  3. oauth2:
  4. resource-server:
  5. jwt:
  6. issuer-uri: http://192.168.11.11:8090 #认证中心端点,作为资源端的配置
  7. #issuer-uri: http://oidc.dev.t-aaron.com
  8. # 配置数据源
  9. datasource:
  10. # 使用阿里的Druid连接池
  11. type: com.alibaba.druid.pool.DruidDataSource
  12. driver-class-name: com.mysql.cj.jdbc.Driver
  13. # 填写你数据库的url、登录名、密码和数据库名
  14. url: jdbc:mysql://192.168.11.13:3306/tuoheng_oidc?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8&useSSL=true&tinyInt1isBit=false
  15. username: root
  16. password: idontcare
  17. druid:
  18. # 连接池的配置信息
  19. # 初始连接数
  20. initialSize: 5
  21. # 最小连接池数量
  22. minIdle: 5
  23. # 最大连接池数量
  24. maxActive: 20
  25. # 配置获取连接等待超时的时间
  26. maxWait: 60000
  27. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  28. timeBetweenEvictionRunsMillis: 60000
  29. # 配置一个连接在池中最小生存的时间,单位是毫秒
  30. minEvictableIdleTimeMillis: 300000
  31. # 配置一个连接在池中最大生存的时间,单位是毫秒
  32. maxEvictableIdleTimeMillis: 900000
  33. # 配置检测连接是否有效
  34. validationQuery: SELECT 1 FROM DUAL
  35. testWhileIdle: true
  36. testOnBorrow: false
  37. testOnReturn: false
  38. # Redis数据源
  39. redis:
  40. # 缓存库默认索引0
  41. database: 0
  42. # Redis服务器地址
  43. host: 192.168.11.13
  44. # Redis服务器连接端口
  45. port: 6379
  46. # Redis服务器连接密码(默认为空)
  47. password:
  48. # 连接超时时间(毫秒)
  49. timeout: 6000
  50. # 默认的数据过期时间,主要用于shiro权限管理
  51. expire: 2592000
  52. jedis:
  53. pool:
  54. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  55. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  56. max-idle: 10 # 连接池中的最大空闲连接
  57. min-idle: 1 # 连接池中的最小空闲连接
  58. oauth2:
  59. token:
  60. issuer: http://192.168.11.11:8090