修复:增加 Halo 登陆有效期配置

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
萌森 2024-08-27 10:19:21 +08:00
parent 5c7e819715
commit 6c554707fb
2 changed files with 11 additions and 3 deletions

View File

@ -30,19 +30,26 @@ additionalProperties:
- default: 8090 - default: 8090
edit: true edit: true
envKey: PANEL_APP_PORT_HTTP envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 访问端口 labelZh: 访问端口
labelEn: Port
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: http://127.0.0.1:8090 - default: "http://127.0.0.1:8090"
edit: true edit: true
envKey: HALO_EXTERNAL_URL envKey: HALO_EXTERNAL_URL
labelEn: External URL
labelZh: 公网访问地址 labelZh: 公网访问地址
labelEn: External URL
required: true required: true
rule: paramExtUrl rule: paramExtUrl
type: text type: text
- default: "14d"
edit: true
envKey: HALO_REMEMBER_ME_TOKEN_VALIDITY
labelZh: 保持登录时间
labelEn: Remember me token validity
required: true
type: text
- default: "127.0.0.1" - default: "127.0.0.1"
edit: true edit: true
envKey: DB_HOSTNAME envKey: DB_HOSTNAME

View File

@ -21,3 +21,4 @@ services:
- --spring.r2dbc.password=${DB_USER_PASSWORD} - --spring.r2dbc.password=${DB_USER_PASSWORD}
- --spring.sql.init.platform=${DB_TYPE} - --spring.sql.init.platform=${DB_TYPE}
- --halo.external-url=${HALO_EXTERNAL_URL} - --halo.external-url=${HALO_EXTERNAL_URL}
- --halo.security.remember-me.token-validity=${HALO_REMEMBER_ME_TOKEN_VALIDITY}