txw/docs/sql/nacos-config/txw-sso.yaml

83 lines
3.0 KiB
YAML

--- #################### sentinel相关配置 ####################
spring:
cloud:
sentinel:
transport:
dashboard: 10.23.10.91:8090 #控制台地址
http-method-specify: true #开启请求方式前缀
feign:
sentinel:
enabled: true
--- #################### xxl-job相关配置 ####################
xxl:
job:
admin:
addresses: http://10.23.10.89:30080/xxl-job-admin
executor:
appname: ${spring.application.name} # 执行器 AppName
logpath: ${user.dir}/logs/xxl-job/${spring.application.name} # 执行器运行日志文件存储磁盘路径
access-token: 9!1%Sw#QydXxlJobToken
spring:
# 数据源配置项
autoconfigure:
exclude:
- com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源
datasource:
druid: # Druid 【监控】相关的全局配置
web-stat-filter:
enabled: true
stat-view-servlet:
enabled: true
allow: # 设置白名单,不填则允许所有访问
url-pattern: /druid/*
login-username: # 控制台管理用户名和密码
login-password:
filter:
stat:
enabled: true
log-slow-sql: true # 慢 SQL 记录
slow-sql-millis: 100
merge-sql: true
wall:
config:
multi-statement-allow: true
dynamic: # 多数据源配置
druid: # Druid 【连接池】相关的全局配置
initial-size: 1 # 初始连接数
min-idle: 1 # 最小连接池数量
max-active: 20 # 最大连接池数量
max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
test-while-idle: true
test-on-borrow: false
test-on-return: false
primary: master
datasource:
master:
name: txw_sso
url: jdbc:mysql://10.23.8.38:3306/txw_sso?allowMultiQueries=true&useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&nullCatalogMeansCurrent=true
username: znsb_yy
password: zNdd_yY0322
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
redis:
host: 10.23.10.91
port: 6379
password: 9!1%Sw#QydRedis0322
database: 9
css:
txw:
sms:
app: txw
host: http://127.0.0.1:9302/mhzc
key: testkey
template: 您的登录验证码 %s 请在3分钟内完成登录
sso:
loginCaptcha: true