autojoin room config

This commit is contained in:
decentral1se 2022-01-12 11:27:43 +01:00
parent a8f43e725d
commit ef7d74d102
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
3 changed files with 9 additions and 2 deletions

View File

@ -15,6 +15,9 @@ COMPOSE_FILE="compose.yml"
#DISABLE_FEDERATION=1
#AUTO_JOIN_ROOM_ENABLED=1
#AUTO_JOIN_ROOM="#example:example.com"
#COMPOSE_FILE="compose.yml:compose.keycloak.yml"
#KEYCLOAK_ENABLED=1
#KEYCLOAK_NAME=

View File

@ -12,6 +12,8 @@ services:
- macaroon_secret_key
- form_secret
environment:
- AUTO_JOIN_ROOM
- AUTO_JOIN_ROOM_ENABLED
- DISABLE_FEDERATION
- DOMAIN
- LETSENCRYPT_HOST=${DOMAIN}

View File

@ -1299,8 +1299,10 @@ account_threepid_delegates:
# If the room already exists, make certain it is a publicly joinable
# room. The join rule of the room must be set to 'public'.
#
#auto_join_rooms:
# - "#example:example.com"
{{ if eq (env "AUTO_JOIN_ROOM_ENABLED") "1" }}
auto_join_rooms:
- "{{ env "AUTO_JOIN_ROOM" }}"
{{ end }}
# Where auto_join_rooms are specified, setting this flag ensures that the
# the rooms exist by creating them when the first user on the