From efd077e41a014658ecb1b6674eab266393b6fd0f Mon Sep 17 00:00:00 2001 From: gyurix Date: Sun, 31 Aug 2025 14:38:12 +0200 Subject: [PATCH] Add DOMAIN_ADMIN and SUB_PATH fields to configuration files --- matrix/domain-matrix-admin.json | 7 +++++-- matrix/matrix-secret.json | 4 +++- matrix/template.json | 12 ++++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/matrix/domain-matrix-admin.json b/matrix/domain-matrix-admin.json index bfb1abf..b212d0e 100644 --- a/matrix/domain-matrix-admin.json +++ b/matrix/domain-matrix-admin.json @@ -1,7 +1,7 @@ { "main": { "SERVICE_NAME": "matrix", - "DOMAIN": "#DOMAIN" + "DOMAIN": "#DOMAIN_ADMIN" }, "containers": [ { @@ -29,11 +29,14 @@ "PORT": "80" }, { - "DOMAIN": "#DOMAIN" + "DOMAIN": "#DOMAIN_ADMIN" }, { "SMARTHOST_PROXY_PATH": "/smarthost-domains" }, + { + "LOCAL_PATH": "#SUB_PATH" + }, { "OPERATION": "CREATE" } diff --git a/matrix/matrix-secret.json b/matrix/matrix-secret.json index 48639b8..8b951ed 100644 --- a/matrix/matrix-secret.json +++ b/matrix/matrix-secret.json @@ -22,6 +22,8 @@ }, "matrixadmin": { "REACT_APP_SERVER": "https://#DOMAIN", - "BASE_PATH": "/synapse-admin" + "BASE_PATH": "/synapse-admin", + "DOMAIN_ADMIN": "#DOMAIN_ADMIN", + "SUB_PATH": "#SUB_PATH" } } \ No newline at end of file diff --git a/matrix/template.json b/matrix/template.json index 1dde126..15c44a8 100644 --- a/matrix/template.json +++ b/matrix/template.json @@ -24,6 +24,18 @@ "required": "true", "type": "password" }, + { + "description": "Add matrix server admin domain", + "key": "DOMAIN_ADMIN", + "value": "", + "required": "true" + }, + { + "description": "Add domain subpath for matrix admin (e.g. admin)", + "details": "Optional - leave blank for none but keep in mind subpath will be required if you have other services using the same domain, for example matrix domain is the same as admin domain.", + "key": "SUB_PATH", + "value": "" + }, { "description": "Postgres database name", "key": "POSTGRES_DB",