Slavi Pantaleev
ff2a0be559
Rename matrix_s3_goofys _docker_image vars to _container_image
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
hace 2 semanas
Slavi Pantaleev
ca2b6b0a27
Rename _docker_ vars to _container_ for kakaotalk, telegram, synapse
These three roles have multiple variable prefixes each:
- kakaotalk: matrix_appservice_kakaotalk + matrix_appservice_kakaotalk_node
- telegram: matrix_mautrix_telegram + matrix_mautrix_telegram_lottieconverter
- synapse: matrix_synapse + matrix_synapse_customized + matrix_synapse_rust_synapse_compress_state
For each: renamed _docker_image* to _container_image* (and _docker_src*,
_docker_repo* where applicable), added deprecation entries in
validate_config.yml, updated group_vars references, and moved
deprecation tasks to the front of validate_config.yml.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
hace 2 semanas
Suguru Hirahara
e5b48f22db
Remove synapse-auto-invite-accept ( #4943 )
* Remove `matrix_synapse_ext_synapse_auto_accept_invite_worker_to_run_on`
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Remove `matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_direct_messages`
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Remove `matrix_synapse_ext_synapse_auto_accept_invite_enabled`
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Remove `matrix_synapse_container_image_customizations_auto_accept_invite_installation_enabled`
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Remove `matrix_synapse_ext_synapse_auto_accept_invite_version`
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Remove `matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_from_local_users`
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Remove roles/custom/matrix-synapse/tasks/ext/synapse-auto-accept-invite
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Update README.md
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Update container-images.md
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Update configuring-playbook.md
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Update configuring-playbook-synapse-auto-accept-invite.md
Reuse bf744319e0/docs/configuring-playbook-sliding-sync-proxy.md
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Update validate_config.yml
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Update CHANGELOG.md
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
---------
Signed-off-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
Co-authored-by: Suguru Hirahara <did🔑 z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
hace 2 semanas
Amélie-Laura Lilith Krejčí
81b90a7089
Fix regression introduced in a77a875
matrix_synapse_systemd_service_post_start_delay_seconds is assigned a string value, and setup fails while creating the service file. It is impossible to compare str and int.
hace 3 semanas
Slavi Pantaleev
9d9e9e9177
Use docker inspect for Synapse systemd health check and lower health interval
Switch the systemd ExecStartPost health check from docker exec + curl
to polling docker inspect for container health status. This piggybacks
on the container image's built-in HEALTHCHECK instead of duplicating it.
Also add a configurable container health interval (5s for Traefik setups,
15s otherwise) to speed up startup readiness detection without affecting
non-Traefik deployments.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
hace 3 semanas
Slavi Pantaleev
59e70b8ca9
Add systemd-healthcheck to Synapse systemd service in an effort to increase reliability (of Synapse-dependant services)
Previously, we had a 10-second magical delay.
Now we first do a healthcheck to figure out when it really is up.
Then, we do the same 10-second magical delay to account for the time it
may take for a reverse-proxy (like Traefik) to pick up Synapse's routes.
hace 3 semanas
Slavi Pantaleev
dd26f8a12a
Add systemd dependencies to s3-storage-provider-migrate service
The migrate service now declares Requires/After on matrix-synapse.service,
ensuring Synapse (and its transitive dependencies like Postgres and Docker)
are running before the migration triggers.
hace 3 semanas
Aine
adf521f8cb
add matrix_synapse_email_enable_notifs and matrix_synapse_email_notif_for_new_users
hace 1 mes
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).
hace 1 mes
Aine
484e94d493
add matrix_synapse_ext_s3_storage_provider_container_arguments var
hace 2 meses
Benjamin Blacher
c1bc2be7ec
Bump synapse, remove some recently stabilized features
hace 4 meses
Slavi Pantaleev
8fd2b75756
Remove `matrix_synapse_container_image_customizations_s3_storage_provider_installation_old_boto_workaround_enabled`
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/4637
We no longer need to boto workaround since s3-storage-provider got
upgraded to v1.6.0 in https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/4635
hace 4 meses
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>
hace 4 meses
Slavi Pantaleev
b54eadb9e0
Revert "Remove `matrix_synapse_container_image_customizations_s3_storage_provider_installation_old_boto_workaround_enabled`"
This reverts commit 2b0ea94a72 .
We're going back to s3-storage-provider=v1.5.0
Ref: https://github.com/matrix-org/synapse-s3-storage-provider/pull/134#issuecomment-3396609289
hace 4 meses
Slavi Pantaleev
2b0ea94a72
Remove `matrix_synapse_container_image_customizations_s3_storage_provider_installation_old_boto_workaround_enabled`
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/4637
We no longer need to boto workaround since s3-storage-provider got
upgraded to v1.6.0 in https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/4635
hace 4 meses
Aine
58688bf538
synapse - introduce vars to control server notices
hace 5 meses
Slavi Pantaleev
d8eed6bfd3
Add some variables for controlling `x_forwarded` settings for Synapse listeners
hace 5 meses
Aine
071b5789f2
add matrix_synapse_user_directory_exclude_remote_users var
hace 6 meses
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
hace 6 meses
Aine
8ff8e435c0
add matrix_synapse_admin_contact var
hace 6 meses
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
hace 7 meses
Aine
7261be5537
add matrix_synapse_ext_password_provider_ldap_tls_options_validate var
hace 7 meses
Suguru Hirahara
3653f9f89b
Run codespell --write-changes
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
hace 9 meses
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.
hace 10 meses
Slavi Pantaleev
e1a2d427c6
Use multi-stage Dockerfile for building customized Synape
This also reverts e5574a405e because:
- it was causing issues on some servers (not clear why)
- such workarounds are no longer necessary when doing multi-stage building.
hace 11 meses
Slavi Pantaleev
e5574a405e
Install `libldap-2.5` explicitly when installing `synapse-s3-storage-provider` to satisfy its `psycopg2` dependency
hace 11 meses
Catalan Lover
cd60cf1199
Internal Admin API and Draupnir Hjack Command Config ( #3389 )
* Enable Internal Admin API Access separately from Public access.
* Add Config variable for Draupnir Hijack command
And also make the internal admin API be automatically activated when this capability is used.
* Apply suggestions from code review
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
* Further Refine Internal Admin API
* Add Non Worker Labels for Internal Admin API
* Variable Rename
* Add validation rules for Internal Synapse admin API
* Add Draupnir Admin API required config validation.
* Override `matrix_synapse_reverse_proxy_companion_container_labels_internal_client_synapse_admin_api_traefik_entrypoints` via group vars
* Wire `matrix_bot_draupnir_admin_api_enabled` to `matrix_bot_draupnir_config_admin_enableMakeRoomAdminCommand` in Draupnir's `defaults/main.yml`
* Remove unnecessary `matrix_bot_draupnir_admin_api_enabled` override from `group_vars/matrix_servers`
The same value is now (more appropriately) defined in Draupnir's `defaults/main.yml` file anyway.
* Add additional condition (`matrix_bot_draupnir_enabled`) for enabling `matrix_synapse_container_labels_internal_client_synapse_admin_api_enabled`
* Use a separate task for validating `matrix_bot_draupnir_admin_api_enabled` when `matrix_bot_draupnir_config_admin_enableMakeRoomAdminCommand`
The other task deals with checking for null and not-blank and can't handle booleans properly.
---------
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
hace 1 año
Aine
1c53f8dd1d
introduce new synapse vars
hace 1 año
Slavi Pantaleev
60e2e035a2
Add `matrix_synapse_rc_delayed_event_mgmt` variable
Ref:
- c4747dd177/docs/self-hosting.md (a-matrix-homeserver)
- e39fe3bc7f
hace 1 año
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>
hace 1 año
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:
- 93ae2aed98/docs/self-hosting.md (a-matrix-homeserver)
- https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3562
hace 1 año
Slavi Pantaleev
f5a0be0a7b
Add support for configuring Synapse's MSC4140 (Delayed Events) experimental feature
This is required by Element Call.
Ref:
- 93ae2aed98/docs/self-hosting.md (a-matrix-homeserver)
- https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3562
hace 1 año
Slavi Pantaleev
4fb0b75942
Reorder Synapse config's `experimental_features` alphabetically
hace 1 año
Iruwen
55e47d69db
Enable room summary API (MSC3266) support for Synapse to support Element X clients
hace 1 año
Suguru Hirahara
2eb952201c
Add license information to files in matrix-synapse/templates/synapse
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
hace 1 año
Suguru Hirahara
431d4c414b
Add license information to files in matrix-synapse/templates/goofys
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
hace 1 año
Slavi Pantaleev
1eea92ba56
Add a `matrix_synapse_redis_use_tls` variable
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/4113
hace 1 año
Slavi Pantaleev
d12643eb91
Do not use `docker stop --time` (deprecated in Docker v28 in favor of `--timeout` or just `-t`)
`-t` works on both old and new Docker versions, so it's best to use that.
hace 1 año
Slavi Pantaleev
72280bbbb2
Add a `matrix_synapse_url_preview_ip_range_whitelist` variable
hace 1 año
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.
hace 1 año
Slavi Pantaleev
d9eabc49e6
Add a `matrix_synapse_url_preview_ip_range_blacklist` variable
hace 1 año
Suguru Hirahara
c27fb2a832
Fix capitalization: postgres → Postgres
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
hace 1 año
Slavi Pantaleev
7232d2b6d5
Pin boto3 and botocore to an old version when installing synapse-s3-storage-provider to prevent issues with non-AWS S3 providers
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3964
Related to https://github.com/aws/aws-cli/issues/9214
hace 1 año
Slavi Pantaleev
75026d8c3d
Update a few incorrect comments
hace 1 año
Suguru Hirahara
f0cc5da229
Edit user identifier examples: to `@alice` and `@bob`
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
hace 1 año
Suguru Hirahara
c1c1b3ada0
Replace triple dots with horizontal ellipsis (U+2026)
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
hace 1 año
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>
hace 1 año
Aine
769a31d3ca
adjust synapse purge jobs template
hace 1 año
Aine
7fc8509f04
synapse - update retention purge jobs template
hace 1 año
Aine
5bf09f5fdc
add new variables to control message retention in Synapse
hace 1 año