Slavi Pantaleev
654aea79b2
Remove obsolete Synapse experimental feature flags (msc3266, msc4140, msc4429)
...
None of these flags exist in current Synapse:
- msc3266_enabled: MSC3266 support was stabilized in Synapse v1.153.0 and the room summary API is now always enabled
- msc4140_enabled: this was never a Synapse configuration setting in any released version. Delayed events have always been controlled by the `max_event_delay_duration` setting, which the playbook was emitting alongside the flag. The toggle is now named `matrix_synapse_delayed_events_enabled`.
- msc4429_enabled: MSC4429 support has not landed in any released Synapse version, so this flag never had any effect
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-07-22 07:56:17 +03:00
Slavi Pantaleev
6b0a635454
Ensure experimental_features is never null in the Synapse configuration (Synapse v1.157.0 compatibility)
...
When no experimental features were enabled (e.g. Matrix RTC and Matrix Authentication Service both disabled), the generated homeserver.yaml contained `experimental_features: null`, which Synapse v1.157.0+ does not tolerate and crashes on startup.
The `experimental_features` configuration is now constructed via a dedicated `matrix_synapse_experimental_features` variable (split into `_default`, `_auto` and `_custom`, as is customary), which always yields a mapping (potentially an empty one).
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5455
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-07-22 07:46:49 +03:00
Norman Ziegner
971c5b954c
Add Synapse support for MSC4429
...
Introduces the `matrix_synapse_experimental_features_msc4429_enabled`
variable (disabled by default), allowing Synapse to notify clients
using the legacy /sync endpoint of profile changes for other users.
See <https://github.com/matrix-org/matrix-spec-proposals/pull/4429 >
Signed-off-by: Norman Ziegner <n.ziegner@hzdr.de >
2026-05-29 13:41:11 +03:00
Sid Manat
cf71cb64c4
feat(synapse): support Postgres database keepalive options
2026-04-17 21:50:44 +03:00
Jean-Benoît Grimaldi
e5804c4203
fix(mas): Don't fail if OpenID connect is setup in synapse while upgrading to MAS
2026-03-30 20:54:51 +03:00
Slavi Pantaleev
63c4fffe65
Add Synapse support for MSC4143
2026-03-23 21:45:13 +02:00
Norman Ziegner
19423864f0
synapse: add missing server_notices configuration variables
...
Add support for all server_notices settings documented by Synapse:
- room_avatar_url: optional avatar for the server notices room
- room_topic: optional topic for the server notices room
- auto_join: whether users are auto-joined instead of invited (default: false)
Signed-off-by: Norman Ziegner <n.ziegner@hzdr.de >
2026-03-17 16:43:14 +02:00
Slavi Pantaleev
5df7e678f7
matrix-synapse: add an explicit msc4306 feature toggle
...
Expose Synapse's `msc4306_enabled` experimental flag as a first-class MDAD
variable and wire it into `homeserver.yaml` alongside the other experimental
feature toggles.
This makes thread-subscriptions support explicit in playbook configuration,
rather than requiring operators to inject the upstream flag via raw
`matrix_synapse_configuration_extension_yaml`.
The variable intentionally controls only the Synapse feature flag. It does not
change the default `thread_subscriptions` worker count, which remains `0` in the
standard presets. Keeping those as separate choices avoids auto-starting an
experimental worker just because the upstream feature toggle is enabled.
Refs:
- https://github.com/element-hq/synapse/blob/b99a58719b274fcbb327fd8d7649185792bfd12c/synapse/config/experimental.py#L600-L602
- https://github.com/element-hq/synapse/blob/b99a58719b274fcbb327fd8d7649185792bfd12c/synapse/rest/client/versions.py#L183-L184
2026-03-15 01:26:53 +02:00
Aine
12d8015bc4
optional postgres unix socket with synapse
2026-03-10 17:38:16 +00:00
Benjamin Blacher
df5b84588b
Add support for sticky events (experimental)
2026-03-09 15:51:38 +02:00
Aine
82caf3a7d3
improve synapse redis socket mounting
2026-03-08 09:56:26 +00:00
Aine
0c40a03efc
allow synapse to use redis unix socket instead of tcp
2026-03-08 07:24:33 +00:00
mikhail.sarnov
1ee5c1f416
feat(synapse): add ca_certs_file support for LDAP TLS
...
Add matrix_synapse_ext_password_provider_ldap_tls_options_ca_certs_file
variable to allow specifying a custom CA certificate file for LDAP TLS
verification. Useful when Synapse is running in a container that does not
trust a private/internal CA by default.
Example usage:
matrix_synapse_ext_password_provider_ldap_tls_options_ca_certs_file: /etc/ssl/certs/my-ca.crt
2026-03-05 14:06:52 +02:00
Slavi Pantaleev
2c29027868
Add configurable Synapse room complexity limit variables
2026-02-21 17:44:31 +02:00
Aine
adf521f8cb
add matrix_synapse_email_enable_notifs and matrix_synapse_email_notif_for_new_users
2026-02-05 19:09:51 +00:00
Slavi Pantaleev
460d46999f
Make Synapse's enable_local_media_storage configurable
...
Ref:
- https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/4882
- https://github.com/element-hq/synapse/pull/19204
- https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#enable_local_media_storage
We default it to `true`, keeping up with upstream and the old behavior.
s3-storage-provider users may set `matrix_synapse_enable_local_media_storage` to `false`
to disable local file caching.
This likely comes at the expense of some performance.
For matrix-media-repo users, it likely doesn't matter what this is set to,
as for a matrix-media-repo setup, all media-related API endpoints are
captured and forwarded to matrix-media-repo (before reaching Synapse).
2026-01-27 22:11:06 +02:00
Benjamin Blacher
c1bc2be7ec
Bump synapse, remove some recently stabilized features
2025-10-29 18:39:31 +02:00
Aleksandrs Jansons
8511d4dfc4
Add matrix_synapse_url_preview_url_blacklist var ( #4641 )
...
* synapse - introduce matrix_synapse_url_preview_url_blacklist var
* Preserve original comments around `url_preview_url_blacklist`
---------
Co-authored-by: Aleksandrs Jansons <alex@peledu.casa >
Co-authored-by: Slavi Pantaleev <slavi@devture.com >
2025-10-14 07:32:40 +03:00
Aine
58688bf538
synapse - introduce vars to control server notices
2025-10-06 16:41:48 +01:00
Slavi Pantaleev
d8eed6bfd3
Add some variables for controlling x_forwarded settings for Synapse listeners
2025-09-16 18:17:35 +03:00
Aine
071b5789f2
add matrix_synapse_user_directory_exclude_remote_users var
2025-09-10 16:38:42 +01:00
Slavi Pantaleev
ec8a7a4934
Stabilize Matrix Authentication Service integration for Synapse
...
Related to https://github.com/element-hq/synapse/pull/18759
Currently problematic (leading to failures to start for Synapse) because of:
https://github.com/element-hq/synapse/pull/18759#issuecomment-3172744530
2025-08-26 15:12:26 +03:00
Aine
8ff8e435c0
add matrix_synapse_admin_contact var
2025-08-25 09:58:34 +01:00
Slavi Pantaleev
51ab9ed9ff
Adjust lstrip_blocks to use a bool value for compatibility with ansible-core>=2.19.0
...
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/4445
2025-07-26 17:58:12 +03:00
Aine
7261be5537
add matrix_synapse_ext_password_provider_ldap_tls_options_validate var
2025-07-23 08:46:08 +01:00
Suguru Hirahara
3653f9f89b
Run codespell --write-changes
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2025-06-03 10:36:00 +03:00
Slavi Pantaleev
95ef383ef7
Add matrix_synapse_cas_config_enabled variable to make cas_confg non-null
...
This works around an issue with Matrix Authentication Service's `syn2mas` sub-command (at version v0.16.0),
which chokes with an error:
> Error: Failed to load Synapse configuration
> Caused by:
> invalid type: found unit, expected struct EnableableSection for key "default.cas_config" in homeserver.yaml YAML file
This issue is likely to be fixed in MAS v0.16.1 or v0.17.0.
2025-05-07 16:37:41 +03:00
Aine
1c53f8dd1d
introduce new synapse vars
2025-03-14 22:44:35 +02:00
Slavi Pantaleev
60e2e035a2
Add matrix_synapse_rc_delayed_event_mgmt variable
...
Ref:
- https://github.com/element-hq/element-call/blob/c4747dd1776b7ad034e61b7723316c975bdd3470/docs/self-hosting.md#a-matrix-homeserver
- https://github.com/element-hq/element-call/commit/e39fe3bc7f6b35c5c70665b8527cde3b3d3c4153
2025-03-14 22:29:08 +02:00
Benjamin Blacher
bf1efda094
Add support for configuring Synapse's MSC4133 (Custom Profile Fields) ( #4171 )
...
* Add support for configuring Synapse's MSC4133 (Custom Profile Fields) experimental feature
* Reorder experimental_features in homeserver.yaml.j2 alphabetically
---------
Co-authored-by: Slavi Pantaleev <slavi@devture.com >
2025-03-13 21:28:23 +02:00
Slavi Pantaleev
63f81bf268
Add support for configuring Synapse's MSC4222 (adding state_after to sync v2) experimental feature
...
This is required by Element Call.
Ref:
- https://github.com/element-hq/element-call/blob/93ae2aed9841e0b066d515c56bd4c122d2b591b2/docs/self-hosting.md#a-matrix-homeserver
- https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3562
2025-03-12 09:12:39 +02:00
Slavi Pantaleev
f5a0be0a7b
Add support for configuring Synapse's MSC4140 (Delayed Events) experimental feature
...
This is required by Element Call.
Ref:
- https://github.com/element-hq/element-call/blob/93ae2aed9841e0b066d515c56bd4c122d2b591b2/docs/self-hosting.md#a-matrix-homeserver
- https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3562
2025-03-12 09:10:35 +02:00
Slavi Pantaleev
4fb0b75942
Reorder Synapse config's experimental_features alphabetically
2025-03-12 09:05:59 +02:00
Iruwen
55e47d69db
Enable room summary API (MSC3266) support for Synapse to support Element X clients
2025-03-06 14:48:23 +01:00
Slavi Pantaleev
1eea92ba56
Add a matrix_synapse_redis_use_tls variable
...
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/4113
2025-02-26 20:47:47 +02:00
Slavi Pantaleev
72280bbbb2
Add a matrix_synapse_url_preview_ip_range_whitelist variable
2025-02-21 23:05:14 +02:00
Slavi Pantaleev
0d7d5e6a19
Do not define url_preview_ip_range_blacklist in Synapse's homeserver.yaml if URL preview is disabled
...
It's useless and just makes the config longer.
2025-02-21 23:03:26 +02:00
Slavi Pantaleev
d9eabc49e6
Add a matrix_synapse_url_preview_ip_range_blacklist variable
2025-02-21 22:21:06 +02:00
Suguru Hirahara
c27fb2a832
Fix capitalization: postgres → Postgres
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2025-02-13 14:00:41 +09:00
Suguru Hirahara
f0cc5da229
Edit user identifier examples: to @alice and @bob
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2024-12-09 14:40:41 +09:00
Suguru Hirahara
c1c1b3ada0
Replace triple dots with horizontal ellipsis (U+2026)
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2024-12-06 13:34:50 +09:00
Suguru Hirahara
8a18cc946d
Replace "@user1" with "@alice" and "@user2" with "@bob" ( #3833 )
...
* Replace "@user1" with "@alice"
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
* Replace "@user2" with "@bob"
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
---------
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2024-11-28 13:53:11 +02:00
Aine
769a31d3ca
adjust synapse purge jobs template
2024-11-18 10:00:12 +02:00
Aine
7fc8509f04
synapse - update retention purge jobs template
2024-11-17 18:34:22 +02:00
Aine
5bf09f5fdc
add new variables to control message retention in Synapse
2024-11-17 13:47:06 +02:00
Slavi Pantaleev
509542ccaf
Enable QR code login (MSC4108) support for Synapse when Matrix Authentication Service is enabled
...
Related to 8a6b822bbd
Related to https://github.com/matrix-org/matrix-spec-proposals/pull/4108
Potential (unconfirmed) fix for https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3749
2024-11-09 21:19:40 +02:00
Aine
95aaf76d0d
add matrix_synapse_oembed_additional_providers var
2024-11-07 11:08:40 +02:00
Suguru Hirahara
aaa6335053
Replace !someRoom with !qporfwt
...
!qporfwt is used as an example of a room ID on https://spec.matrix.org/v1.12/#room-structure
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2024-10-21 21:47:52 +09:00
Suguru Hirahara
1e8030810f
Update internal room ID: !someRoom
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2024-10-21 21:47:02 +09:00
Slavi Pantaleev
8f16524789
Add support for Matrix Authentication Service
...
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3108
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3562
2024-10-19 14:43:34 +03:00