From 51d1133ce2b6022c7b2ef01618421bfb69085a34 Mon Sep 17 00:00:00 2001 From: 05412 <2738076308@qq.com> Date: Tue, 23 Jul 2024 11:38:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index cc9b6e1..2a66683 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -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$ # 注册