优化配置文件
This commit is contained in:
parent
d493a65c60
commit
51d1133ce2
@ -10,9 +10,9 @@ spring:
|
||||
datasource:
|
||||
name: postgres # 数据库名称
|
||||
driver-class-name: org.postgresql.Driver # 驱动名称
|
||||
url: jdbc:postgresql://localhost:5432/postgres?reWriteBatchedInserts=true # 数据库连接地址
|
||||
url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/postgres?reWriteBatchedInserts=true # 数据库连接地址
|
||||
username: postgres # 数据库用户名
|
||||
password: f6059e64-889b-4f31-97a7-deaeb1a36d58 # 数据库密码
|
||||
password: ${DB_PASS} # 数据库密码
|
||||
hikari: # HikariCP
|
||||
connection-test-query: SELECT 1 # 测试连接
|
||||
connection-timeout: 30000 # 连接超时时间
|
||||
@ -27,7 +27,7 @@ spring:
|
||||
date-format: yyyy-MM-dd HH:mm:ss.SSS # 日期格式
|
||||
data: # spring data
|
||||
redis:
|
||||
host: localhost # 地址
|
||||
host: ${REDIS_HOST:localhost} # 地址
|
||||
database: 0 # 数据库
|
||||
jedis:
|
||||
pool:
|
||||
@ -44,13 +44,13 @@ logging:
|
||||
root: info # 全局日志级别
|
||||
Exposed: debug # Exposed日志级别
|
||||
|
||||
# 基础配置
|
||||
# 基础配置: dev.surl.surl.cfg.BaseConfig
|
||||
base:
|
||||
configs:
|
||||
site: http://localhost:${server.port} # 站点
|
||||
expire: 6 # 过期时间
|
||||
unit: hours # 单位
|
||||
secret: Is#45Ddw29apkbHawwaHb4d^&w29apkbHawwaHb4d^& # 密钥
|
||||
secret: ${SECRET_KEY:} # 密钥
|
||||
white-list: # 白名单
|
||||
- ^/login$ # 登录
|
||||
- ^/reg$ # 注册
|
||||
|
Loading…
Reference in New Issue
Block a user