feat: 创建Halo,支持让用户自定义 “外部访问地址”

This commit is contained in:
zhengkunwang223 2023-02-20 17:43:35 +08:00
parent d407b38898
commit 8e44e54d87
2 changed files with 9 additions and 1 deletions

View File

@ -49,6 +49,14 @@
"default": "random",
"envKey": "HALO_ADMIN_PASSWORD"
},
{
"type": "text",
"labelZh": "外部访问地址",
"labelEn": "External URL",
"required": true,
"default": "localhost",
"envKey": "HALO_EXTERNAL_URL"
},
{
"type": "number",
"labelZh": "端口",

View File

@ -15,7 +15,7 @@ services:
- --spring.r2dbc.username=${PANEL_DB_USER}
- --spring.r2dbc.password=${PANEL_DB_USER_PASSWORD}
- --spring.sql.init.platform=mysql
- --halo.external-url=http://localhost:${PANEL_APP_PORT_HTTP}/
- --halo.external-url=http://${HALO_EXTERNAL_URL}:${PANEL_APP_PORT_HTTP}/
- --halo.security.initializer.superadminusername=${HALO_ADMIN}
- --halo.security.initializer.superadminpassword=${HALO_ADMIN_PASSWORD}
labels: