信息加密
This commit is contained in:
parent
c357752d38
commit
c472579dcb
31
src/main/resources/application.yml
Normal file
31
src/main/resources/application.yml
Normal file
@ -0,0 +1,31 @@
|
||||
spring:
|
||||
main:
|
||||
web-application-type: reactive
|
||||
r2dbc:
|
||||
url: r2dbc:mysql://${DB_HOST}:${DB_PORT}/chat-netty
|
||||
username: ${DB_USERNAME}
|
||||
password: ${DB_PASSWORD}
|
||||
pool:
|
||||
initial-size: 10
|
||||
max-size: 20
|
||||
max-idle-time: 30m
|
||||
validation-query: "SELECT 1" # 连接验证
|
||||
max-create-connection-time: 10s
|
||||
max-life-time: 10m
|
||||
data:
|
||||
redis:
|
||||
host: ${DB_HOST}
|
||||
port: 6379
|
||||
database: 0
|
||||
password: ${DB_PASSWORD}.
|
||||
connect-timeout: 10000
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 8
|
||||
max-idle: 8
|
||||
min-idle: 0
|
||||
max-wait: -1ms
|
||||
security:
|
||||
jwt:
|
||||
key: 603c7932-cb64-44d4-b505-6d10120e3bd5
|
||||
expire: 7
|
Loading…
x
Reference in New Issue
Block a user