diff --git a/apps/halo/versions/2.2.0/config.json b/apps/halo/versions/2.2.0/config.json index 27f0d39e..8dc96e40 100644 --- a/apps/halo/versions/2.2.0/config.json +++ b/apps/halo/versions/2.2.0/config.json @@ -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": "端口", diff --git a/apps/halo/versions/2.2.0/docker-compose.yml b/apps/halo/versions/2.2.0/docker-compose.yml index 5280f7e3..1195adcc 100644 --- a/apps/halo/versions/2.2.0/docker-compose.yml +++ b/apps/halo/versions/2.2.0/docker-compose.yml @@ -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: