Slavi Pantaleev
39bddefd39
Make addons communicate with the homeserver via a new internal Traefik entrypoint
This also adds labels for Synapse. Support for other homeservers and
components will be added later.
2 lat temu
Slavi Pantaleev
74099383cd
Adapt external_prometheus.yml.example.j2 to our new metrics exposure setup
2 lat temu
Slavi Pantaleev
c0308307e2
Make homeserver services sleep after startup, instead of all dependencies sleeping separately
This is an attempt at optimizing service startup.
The effect is most pronounced when many services are restarted one by one.
The systemd service manager role sometimes does this - for example when `just install-service synapse` runs.
In such cases, a 5-second delay for each Synapse worker service
(or other bridge/bot service that waits on the homeserver) quickly adds up to a lot.
When services are all stopped fully and then started, the effect is not so pronounced, because
`matrix-synapse.service` starts first and pulls all worker services (defined as `Wants=` for it).
Later on, when the systemd service manager role "starts" these worker services, they're started already.
Even if they had a 5-second wait each, it would have happened in parallel.
2 lat temu
Slavi Pantaleev
41a52945d6
Add support for exposing metrics for Synapse workers
2 lat temu
Slavi Pantaleev
22f5f0ba75
Add support for exposing metrics for Synapse (without workers)
2 lat temu
Slavi Pantaleev
3556dd77ef
Use variables instead of hardcoding service port numbers in labels for matrix-synapse
2 lat temu
Slavi Pantaleev
e5130372b9
Switch matrix_synapse_container_additional_volumes from using -v to --mount
Depending on the `options` that people provide, this may break
compatibility.
2 lat temu
Slavi Pantaleev
f257cd9fbe
Fix a few incorrect service names in labels for matrix-synapse/matrix-synapse-reverse-proxy-companion
2 lat temu
Slavi Pantaleev
015acb6d08
Add native Traefik support to matrix-synapse
2 lat temu
Michael Hollister
a66a2d2692
Added Synapse connection pool config variables
2 lat temu
Slavi Pantaleev
2511b34a7c
Stop containers gracefully, instead of outright killing them
2 lat temu
Aine
b2dd4bd1a4
Fix matrix_synapse_oidc_providers parsing
2 lat temu
Slavi Pantaleev
c0e56ac1c4
Make OIDC providers if check safer
2 lat temu
Aine
9167a7734e
add matrix_synapse_oidc_enabled and matrix_synapse_oidc_providers vars
2 lat temu
Slavi Pantaleev
217ddad2de
Add support for configuring forgotten_room_retention_period
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2918
Related to https://github.com/matrix-org/synapse/pull/15488
2 lat temu
Slavi Pantaleev
e033520ce2
Make Synapse worker systemd service files depend on matrix-synapse.service
Many of these do depend on the Synapse master process (`matrix-synapse.service`),
so it makes sense to do it.
Furthermore, we're doing it so that one can stop the `matrix-synapse.service`
service and have systemd cascade this into stopping all the workers as well.
This is useful for easily stopping all of Synapse, so that Postgres
upgrades (`--tags=upgrade-postgres`) can happen cleanly.
Postgres upgrades currently stop `devture_postgres_systemd_services_to_stop_for_maintenance_list` which
includes Synapse, but stopping just the master process and leaving workers running is not safe enough and sometimes leads to errors like:
> ERROR: insert or update on table "event_forward_extremities" violates foreign key constraint "event_forward_extremities_event_id"
With this dependency in place, stopping `matrix-synapse.service` will stop all Synapse processes.
2 lat temu
Slavi Pantaleev
d207edb304
Deprecate matrix_synapse_spam_checker in favor of matrix_synapse_modules
2 lat temu
Alexis Yushin
ba1d665bd9
make smtp tls configurable / optional
2 lat temu
Slavi Pantaleev
c09c1265e8
Stop using deprecated worker settings (worker_replication_host, worker_replication_http_port)
Related to:
- e4f545c452
- 2481b7dfa4
We've prepared for this by adding the `main` process to the `instance_map` a long time ago,
in 49cb8b7b11 .
2 lat temu
Zac
f026c7cee1
Apply suggestions from code review
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
2 lat temu
cbackas
0e701bbece
add var to make the creds optional
2 lat temu
Zac
ceda4c41cc
remove the offending lines
2 lat temu
Luke D Iremadze
5c0279f0c9
Update roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
2 lat temu
Luke D Iremadze
2f4428bf5b
Update roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
2 lat temu
Luke D Iremadze
1f0da9f744
Create hooks for user search ability
2 lat temu
Slavi Pantaleev
c55371e305
Add changelog entry for the forget_rooms_on_leave default change for Synapse
Related to:
- https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2698
- https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2700
2 lat temu
Aine
9350eeb9fb
update synapse 1.83.0 -> 1.84.0; set forget_rooms_on_leave = true
2 lat temu
Slavi Pantaleev
b71375fac7
Disable healthcheck for Synapse workers which serve no web traffic
This was mostly affecting the stream writer (events) worker, which was
being reported as unhealthy. It wasn't causing any issues, but it just
looked odd and was confusing people.
As an alternative to hitting the regular `/health` healthcheck route (on
the "client" API which this stream writer does not expose),
we may have went for hitting some "replication" API endpoint instead.
This is more complicated and likely unnecessary.
2 lat temu
Slavi Pantaleev
1e1ab70965
Make use of matrix_synapse_container_network in the matrix-synapse role
It's the same as `matrix_docker_network` for now, so this practically
doesn't change anything.
2 lat temu
spatterlight
beb40134b7
Add support for backup LDAP servers ( #2650 )
* Update homeserver.yaml.j2
* Update configuring-playbook-ldap-auth.md
* Update homeserver.yaml.j2
2 lat temu
Kanlas
9c75a1e20d
Fix recaptcha vars ansible-vault compatibility
2 lat temu
Aeris One
44aa0dce7b
Add ability to disable password auth ( #2612 )
* Add ability to disable password auth
* Allow disabling password authentication
3 lat temu
Slavi Pantaleev
643acfcb5b
Make synapse-s3-storage-provider periodic migration schedule customizable
Larger deployments may wish to run migration more often.
3 lat temu
Slavi Pantaleev
5df89a44b3
Add support for customizing Synapse templates
3 lat temu
Slavi Pantaleev
9775218850
Add matrix_synapse_email_app_name variable
3 lat temu
Slavi Pantaleev
632026513e
Add matrix_synapse_uid, matrix_synapse_gid and matrix_synapse_username
3 lat temu
Slavi Pantaleev
519b32543c
Add matrix_synapse_container_network and matrix_synapse_container_additional_networks
3 lat temu
Slavi Pantaleev
2d7d5d4bab
Use new security-opt syntax (: -> =)
Related to https://docs.docker.com/engine/deprecated/#separator--of---security-opt-flag-on-docker-run
3 lat temu
Slavi Pantaleev
f0d1e23c9d
Move around whitelines
3 lat temu
Cody Wyatt Neiman
fc9eaa6ec5
Remove git version for s3 storage provider
3 lat temu
Aine
6bd909bbb7
add mode var for synapse ext ldap auth
3 lat temu
Cody Wyatt Neiman
7e5e1712f5
Encode s3 sse-c key for utf-8
3 lat temu
Cody Wyatt Neiman
f5390562ed
Fix synapse s3 storage provider container indentation
3 lat temu
Cody Wyatt Neiman
6d96bcee1d
Allow 'git' as a version for s3 storage provider
3 lat temu
Cody Wyatt Neiman
4d44f7b49e
Use base64 encoded string for sse-c key
3 lat temu
Slavi Pantaleev
40aa42e982
Add reference to push.enabled to homeserver.yaml
Related to:
- https://github.com/matrix-org/synapse/pull/14551/files
- https://github.com/matrix-org/synapse/pull/14619/files
3 lat temu
Slavi Pantaleev
9edc7da67d
Do not specify now-unnecessary worker_main_http_uri Synapse worker setting
Related to
- c15e9a0edb
- 01a0527892
3 lat temu
Slavi Pantaleev
663fe29ddb
Do not specify start_pushers in Synapse config
It's unnecessary when `pusher_instances` is populated.
Source: 6acb6d772a
3 lat temu
Slavi Pantaleev
135bb5af3e
Do not specify send_federation in Synapse config
It's unnecessary when `federation_sender_instances` is populated.
Source: 6acb6d772a
3 lat temu
Slavi Pantaleev
7464604ddd
Make use of matrix_synapse_ext_s3_storage_provider_data_path in a few more places
3 lat temu