|
|
@ -15,7 +15,7 @@ spring: |
|
|
|
# url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.81.252}:${DB_PORT:3306}/${DB_NAME:nl-sso-server}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true |
|
|
|
url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:nl_platform}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true |
|
|
|
username: ${DB_USER:root} |
|
|
|
password: ${DB_PWD:942464Yy} |
|
|
|
password: ${DB_PWD:root} |
|
|
|
# password: ${DB_PWD:12356} |
|
|
|
# 初始连接数 |
|
|
|
initial-size: 5 |
|
|
@ -61,11 +61,11 @@ spring: |
|
|
|
redis: |
|
|
|
#数据库索引 |
|
|
|
database: ${REDIS_DB:2} |
|
|
|
host: 47.96.133.178 |
|
|
|
host: 127.0.0.1 |
|
|
|
# Redis服务器连接端口 |
|
|
|
port: 6479 |
|
|
|
port: 6379 |
|
|
|
# Redis服务器连接密码(默认为空) |
|
|
|
password: 942464Yy |
|
|
|
# password: 942464Yy |
|
|
|
redisson: |
|
|
|
config: | |
|
|
|
threads: 4 |
|
|
@ -73,8 +73,7 @@ spring: |
|
|
|
singleServerConfig: |
|
|
|
connectionMinimumIdleSize: 8 |
|
|
|
connectionPoolSize: 8 |
|
|
|
address: redis://47.96.133.178:6479 |
|
|
|
password: 942464Yy |
|
|
|
address: redis://127.0.0.1:6379 |
|
|
|
idleConnectionTimeout: 10000 |
|
|
|
timeout: 3000 |
|
|
|
|
|
|
@ -219,7 +218,7 @@ sa-token: |
|
|
|
is-log: false |
|
|
|
jwt-secret-key: opsjajisdnnca0sdkksdfaaasdfwwq |
|
|
|
# token 前缀 |
|
|
|
token-prefix: |
|
|
|
token-prefix: Bearer |
|
|
|
cookie: |
|
|
|
# 配置 Cookie 作用域 |
|
|
|
domain: |
|
|
@ -245,15 +244,27 @@ sa-token: |
|
|
|
# Redis数据库索引(默认为0) |
|
|
|
database: 2 |
|
|
|
# Redis服务器地址 |
|
|
|
host: 47.96.133.178 |
|
|
|
host: 127.0.0.1 |
|
|
|
# Redis服务器连接端口 |
|
|
|
port: 6479 |
|
|
|
port: 6379 |
|
|
|
# Redis服务器连接密码(默认为空) |
|
|
|
password: 942464Yy |
|
|
|
# 连接超时时间 |
|
|
|
timeout: 10s |
|
|
|
|
|
|
|
loki: |
|
|
|
url: http://localhost:3100/loki/api/v1 |
|
|
|
systemName: acs |
|
|
|
jwt: |
|
|
|
header: Authorization |
|
|
|
# 令牌前缀 |
|
|
|
token-start-with: Bearer |
|
|
|
# 必须使用最少88位的Base64对该令牌进行编码 |
|
|
|
base64-secret: ZmQ0ZGI5NjQ0MDQwY2I4MjMxY2Y3ZmI3MjdhN2ZmMjNhODViOTg1ZGE0NTBjMGM4NDA5NzYxMjdjOWMwYWRmZTBlZjlhNGY3ZTg4Y2U3YTE1ODVkZDU5Y2Y3OGYwZWE1NzUzNWQ2YjFjZDc0NGMxZWU2MmQ3MjY1NzJmNTE0MzI= |
|
|
|
# 令牌过期时间 此处单位/毫秒 ,默认2小时,可在此网站生成 https://www.convertworld.com/zh-hans/time/milliseconds.html |
|
|
|
token-validity-in-seconds: 7200000 |
|
|
|
# 在线用户key |
|
|
|
online-key: online-token- |
|
|
|
# 验证码 |
|
|
|
code-key: code-key- |
|
|
|
# token 续期检查时间范围(默认30分钟,单位默认毫秒),在token即将过期的一段时间内用户操作了,则给用户的token续期 |
|
|
|
detect: 1800000 |
|
|
|
# 续期时间范围,默认 1小时,这里单位毫秒 |
|
|
|
renew: 3600000 |
|
|
|
|
|
|
|