Can't configure SSO & federation #30

Closed
opened 2022-05-15 08:06:31 +00:00 by decentral1se · 1 comment
Owner

Following #27 if you want to enable federation after disabling it & while having SSO configured, you might need to make this additional patch:

diff --git a/abra.sh b/abra.sh
index 015b794..d4103f8 100644
--- a/abra.sh
+++ b/abra.sh
@@ -1,4 +1,4 @@
 export ENTRYPOINT_CONF_VERSION=v1
-export HOMESERVER_YAML_VERSION=v9
+export HOMESERVER_YAML_VERSION=v10
 export LOG_CONFIG_VERSION=v2
 export TELEGRAM_BRIDGE_YAML_VERSION=v1
diff --git a/homeserver.yaml.tmpl b/homeserver.yaml.tmpl
index 0578de0..c2bf54a 100644
--- a/homeserver.yaml.tmpl
+++ b/homeserver.yaml.tmpl
@@ -313,7 +313,7 @@ listeners:
     {{ if eq (env "DISABLE_FEDERATION") "1" }}
     resources:
       {{ if eq (env "KEYCLOAK_ENABLED") "1" }}
-      - names: [client, openid]
+      - names: [client, openid, federation]
         compress: true
       {{ else }}
       - names: [client]

The config needs to be re-worked to allow the different options.

It might be a breaking change, I'm unsure.

Following https://git.coopcloud.tech/coop-cloud/matrix-synapse/pulls/27 if you want to enable federation after disabling it & while having SSO configured, you might need to make this additional patch: ```diff diff --git a/abra.sh b/abra.sh index 015b794..d4103f8 100644 --- a/abra.sh +++ b/abra.sh @@ -1,4 +1,4 @@ export ENTRYPOINT_CONF_VERSION=v1 -export HOMESERVER_YAML_VERSION=v9 +export HOMESERVER_YAML_VERSION=v10 export LOG_CONFIG_VERSION=v2 export TELEGRAM_BRIDGE_YAML_VERSION=v1 diff --git a/homeserver.yaml.tmpl b/homeserver.yaml.tmpl index 0578de0..c2bf54a 100644 --- a/homeserver.yaml.tmpl +++ b/homeserver.yaml.tmpl @@ -313,7 +313,7 @@ listeners: {{ if eq (env "DISABLE_FEDERATION") "1" }} resources: {{ if eq (env "KEYCLOAK_ENABLED") "1" }} - - names: [client, openid] + - names: [client, openid, federation] compress: true {{ else }} - names: [client] ``` The config needs to be re-worked to allow the different options. It might be a breaking change, I'm unsure.
Author
Owner

This patch ☝️ is actually wrong since DISABLE_FEDERATION=1 must be set to keep the sso, part. So I've got some misconfigured servers that I didn't notice because folks already have their accounts... need to get around to this shortly...

This patch :point_up: is actually wrong since `DISABLE_FEDERATION=1` must be set to keep the `sso,` part. So I've got some misconfigured servers that I didn't notice because folks already have their accounts... need to get around to this shortly...
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/matrix-synapse#30
No description provided.