123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- server:
- video_stable_start_url: http://localhost:11006/video_stable
- video_stable_stop_url: http://localhost:11006/video_stable_stop
- task_stop_url: http://localhost:11003/stop
- task_stop_url_cat: http://localhost:11004/stop
- # 数据源配置
- spring:
- datasource:
- type: com.zaxxer.hikari.HikariDataSource
- mybatis-flex:
- # sql审计
- audit_enable: true
- # sql打印
- sql_print: true
- datasource:
- # 数据源-1
- ds1:
- # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
- # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
- type: ${spring.datasource.type}
- # mysql数据库
- # driver-class-name: com.mysql.cj.jdbc.Driver
- # url: jdbc:mysql://localhost:3306/km?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
- # username: root
- # password: Root@369
- #postgresql数据库
- driver-class-name: org.postgresql.Driver
- # url: jdbc:postgresql://localhost:5432/taais?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
- url: jdbc:postgresql://101.126.133.7:5432/taais?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
- username: postgres
- password: P3x0LG8jzyHRX59l
- # 最大连接池数量
- maximum-pool-size: 4
- # 最小空闲线程数量
- minimum-idle: 2
- # 配置获取连接等待超时的时间
- connectionTimeout: 300000
- # 校验超时时间
- validationTimeout: 50000
- # 空闲连接存活最大时间,默认10分钟
- idleTimeout: 6000000
- # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
- maxLifetime: 1800000
- # 多久检查一次连接的活性
- keepaliveTime: 30000
- # # 数据源-2
- # ds2:
- # # 指定为HikariDataSource
- # type: ${spring.datasource.type}
- # # mysql数据库
- # driver-class-name: com.mysql.cj.jdbc.Driver
- # url: jdbc:mysql://localhost:3306/km?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
- # username: root
- # password: Root@369
- # #postgresql数据库
- ## driver-class-name: org.postgresql.Driver
- ## url: jdbc:postgresql://localhost:5432/km?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
- ## username: postgres
- ## password: postgres@369
- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
- spring.data:
- redis:
- # 地址
- host: 101.126.133.7
- # 端口,默认为6379
- port: 6379
- # 数据库索引
- database: 0
- # 密码(如没有密码请注释掉)
- password: Z;G4AS:Vor'YF#p?
- # 连接超时时间
- timeout: 10s
- # 是否开启ssl
- ssl.enabled: false
- redisson:
- # redis key前缀
- keyPrefix: taais
- # 线程池数量
- threads: 4
- # Netty线程池数量
- nettyThreads: 8
- # 单节点配置
- singleServerConfig:
- # 客户端名称
- clientName: ${taais.name}
- # 最小空闲连接数
- connectionMinimumIdleSize: 8
- # 连接池大小
- connectionPoolSize: 32
- # 连接空闲超时,单位:毫秒
- idleConnectionTimeout: 10000
- # 命令等待超时,单位:毫秒
- timeout: 3000
- # 发布和订阅连接池大小
- subscriptionConnectionPoolSize: 50
- --- # 监控中心客户端配置
- spring.boot.admin.client:
- # 增加客户端开关
- enabled: false
- url: http://localhost:9090/admin
- instance:
- service-host-type: IP
- username: km
- password: 123456
- --- # powerjob 配置
- powerjob:
- worker:
- # 如何开启调度中心请查看文档教程
- enabled: false
- # 需要先在 powerjob 登录页执行应用注册后才能使用
- app-name: taais
- # 28080 端口 随着主应用端口飘逸 避免集群冲突
- port: 2${server.port}
- protocol: http
- server-address: 127.0.0.1:7700
- store-strategy: disk
- allow-lazy-connect-server: false
- max-appended-wf-context-length: 4096
- max-result-length: 4096
- --- # sms 短信 支持 华为 阿里云 腾讯云 等等各式各样的短信服务商
- # https://sms4j.com/doc3/ 文档地址 各个厂商可同时使用
- sms:
- # 标注从yml读取配置
- config-type: yaml
- is-print: true
- blends:
- # 自定义的标识,也就是configId这里可以是任意值(最好不要是中文)
- tx1:
- #厂商标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分
- supplier: tencent
- #您的accessKey
- access-key-id: 您的accessKey
- #您的accessKeySecret
- access-key-secret: 您的accessKeySecret
- #您的短信签名
- signature: 您的短信签名
- #模板ID 非必须配置,如果使用sendMessage的快速发送需此配置
- template-id: xxxxxxxx
- #短信自动重试间隔时间 默认五秒
- retry-interval: 5
- # 短信重试次数,默认0次不重试,如果你需要短信重试则根据自己的需求修改值即可
- max-retries: 0
- #您的sdkAppId
- sdk-app-id: 您的sdkAppId
- # 自定义的标识,也就是configId这里可以是任意值(最好不要是中文)
- tx2:
- #厂商标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分
- supplier: tencent
- #您的accessKey
- access-key-id: 您的accessKey
- #您的accessKeySecret
- access-key-secret: 您的accessKeySecret
- #您的短信签名
- signature: 您的短信签名
- #模板ID 非必须配置,如果使用sendMessage的快速发送需此配置
- template-id: xxxxxxxx
- #您的sdkAppId
- sdk-app-id: 您的sdkAppId
- # Sa-Token配置
- sa-token:
- # token名称 (同时也是cookie名称)
- token-name: Authorization
- # token固定超时 设为七天 (必定过期) 单位: 秒
- timeout: 604800
- # 多端不同 token 有效期 可查看 LoginHelper.loginByDevice 方法自定义
- # token最低活跃时间 (指定时间无操作就过期) 单位: 秒
- active-timeout: 604800
- # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
- is-concurrent: true
- # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
- is-share: false
- # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
- token-style: uuid
- # 是否输出操作日志
- is-log: true
- # jwt秘钥
- jwt-secret-key: abcdefghijklmnopqrstuvwxyz
- is-print: false #关闭控制台banner
- captcha:
- enable: true
- # 页面 <参数设置> 可开启关闭 验证码校验
- # 验证码类型 math 数组计算 char 字符验证
- type: MATH
- # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰
- category: CIRCLE
- # 数字验证码位数
- numberLength: 1
- # 字符验证码长度
- charLength: 4
|