Slavi Pantaleev
eb7292f274
Add matrix_client_hydrogen_hostname and fix Hydrogen serving at non-root-path
2023-02-14 10:57:13 +02:00
Slavi Pantaleev
6a52be7987
Add (native) Traefik support to matrix-client-hydrogen
...
Previously, it had to go through matrix-nginx-proxy.
It's exposed to Traefik directly via container labels now
Serving at a path other than `/` doesn't work well yet.
2023-02-14 09:58:35 +02:00
Slavi Pantaleev
64e2b26ed5
Fix Hydrogen failing to start
...
We were mounting our own configuration to
`/usr/share/nginx/html/config.json`, which is a symlink to
`/tmp/config.json`. So we effectively mount our file to
`/tmp/config.json`.
When starting:
- if Hydrogen sees a `CONFIG_OVERRIDE` environment variable,
it will try to save it into our read-only config file and fail.
- if Hydrogen doesn't see a `CONFIG_OVERRIDE` environment variable (the
path we go through, because we don't pass such a variable),
it will try to copy its bundled configuration (`/config.json.bundled`)
to `/tmp/config.json`. Because our configuration is mounted as read-only, it will
fail.
In both cases, it will fail with:
> cp: can't create '/tmp/config.json': File exists
Source: https://github.com/vector-im/hydrogen-web/blob/3720de36bbee8609ca7cf625e7b72dc44609e393/docker/dynamic-config.sh
We work around this by mounting our configuration on top of the bundled
one (`/config.json.bundled`). We then let Hydrogen's startup script copy
it to `/tmp/config.json` (a tmpfs we've mounted into the container) and use it from there.
2023-02-14 09:49:22 +02:00
Slavi Pantaleev
799cbb44fb
Add the ability to control (Traefik) routing priority for Element and synapse-admin
...
This may proof useful to someone in the future.
2023-02-14 09:04:50 +02:00
Slavi Pantaleev
5c7cd70684
Make use of the existing matrix_synapse_admin_public_endpoint variable
2023-02-14 08:51:20 +02:00
Slavi Pantaleev
c33ed94352
Add security headers to synapse-admin (on Traefik)
...
We've had it on `matrix-nginx-proxy` before, but
our initial support for Traefik did not include any of these security
headers.
2023-02-14 08:49:04 +02:00
Slavi Pantaleev
71597132e0
Move around some matrix-client-element variables
2023-02-14 08:45:32 +02:00
Slavi Pantaleev
5ab5f28d14
Add support for running synapse-admin (on Traefik) at the root path
...
Previously, we had to run it at a subpath, like `/synapse-admin`.
We can now dedicate a whole domain and the `/` path to it, should we
wish to do so.
2023-02-14 08:42:50 +02:00
Slavi Pantaleev
ff1338e003
Add support for hosting Element (on Traefik) at a subpath
2023-02-14 08:31:26 +02:00
Slavi Pantaleev
e34174b1b4
Add various security headers to matrix-client-element when behind Traefik
2023-02-13 19:03:20 +02:00
Slavi Pantaleev
e51e4eec09
Add (native) Traefik support to matrix-client-element
...
Previously, it had to go through matrix-nginx-proxy.
It's exposed to Traefik directly via container labels now
2023-02-13 19:03:20 +02:00
Slavi Pantaleev
f2ed5e4b04
Delete /matrix/nginx-proxy/conf.d/matrix-client-element.conf if matrix_nginx_proxy_proxy_element_enabled not enabled
2023-02-13 19:03:20 +02:00
Slavi Pantaleev and GitHub
c0060753b5
Merge pull request #2477 from etkecc/patch-168
...
Update postmoogle 0.9.12 -> 0.9.13
2023-02-13 18:09:30 +02:00
Slavi Pantaleev
b2d8718233
Fix synapse-admin reverse-proxying regression for "playbook-managed-nginx"
...
Regression since 3d9aa8387e
2023-02-13 16:08:59 +02:00
Slavi Pantaleev
6cda711c0b
Fix incorrect host_bind_port syntax (extra :) affecting certain deployments
...
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2474
Seems like this affected all "own webserver" deployments, which required
port exposure.
`playbook-managed-traefik` and `playbook-managed-nginx` were not affected.
2023-02-13 15:38:24 +02:00
Slavi Pantaleev and GitHub
31aa87fdb6
Merge pull request #2475 from etkecc/patch-167
...
Update coturn 4.6.1-r1 -> 4.6.1-r2
2023-02-13 15:12:37 +02:00
Slavi Pantaleev
3d9aa8387e
Add (native) Traefik support to synapse-admin
...
Previously, it had to go through matrix-nginx-proxy.
It's exposed to Traefik directly via container labels now.
2023-02-13 15:08:42 +02:00
Slavi Pantaleev
80935a5194
Fix broken backup_borg link
...
Referenced here: https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/06f5be4fa549713ef88e830d371f9806b894f9e1#r100414988
2023-02-13 14:14:25 +02:00
Slavi Pantaleev
06f5be4fa5
Announce matrix-backup-borg extraction
2023-02-13 13:16:55 +02:00
Slavi Pantaleev
5d14621916
Fix outdated documentation leading to matrix-backup-borg
2023-02-13 13:16:55 +02:00
Slavi Pantaleev and GitHub
e78c52a63a
Merge pull request #2473 from etkecc/patch-166
...
restore borg prefixes
2023-02-13 12:45:14 +02:00
Slavi Pantaleev
266195ab45
Upgrade backup_borg (v1.2.3-1.7.5-1 -> v1.2.3-1.7.6-0)
...
Supersedes https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2472
2023-02-13 12:26:49 +02:00
Slavi Pantaleev
65730b84d3
Upgrade backup_borg (v1.2.3-1.7.5-0 -> v1.2.3-1.7.5-1)
2023-02-13 11:51:11 +02:00
Slavi Pantaleev
23f7720247
Add missing backup_borg_base_path override
2023-02-13 11:44:19 +02:00
Slavi Pantaleev
38904c08b0
Wire backup_borg_username
...
It's probably unnecessary, as this user is only used in the borg container
internally, but.. It doesn't hurt to set it to `matrix`.
2023-02-13 11:01:54 +02:00
Slavi Pantaleev
78c35136b2
Replace matrix-backup-borg with an external role
2023-02-13 10:53:11 +02:00
Slavi Pantaleev and GitHub
f81aa4a927
Merge pull request #2470 from Techno-Disaster/td/oops
...
fix: missing endif
2023-02-13 09:12:48 +02:00
Slavi Pantaleev and GitHub
2be5ba45db
Merge pull request #2466 from array-in-a-matrix/patch-13
...
updated dendrite
2023-02-12 20:37:23 +02:00
Slavi Pantaleev
972043cfaf
Fix trying to start devture-traefik when not necessarily enabled
...
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2465
2023-02-12 17:14:25 +02:00
Slavi Pantaleev and GitHub
f1a1ce8a91
Merge pull request #2464 from spantaleev/traefik
...
Reverse-proxy configuration changes and initial Traefik support
2023-02-12 16:05:56 +02:00
Slavi Pantaleev
bc4cb7bb6a
Update configuring-playbook-own-webserver.md with matrix_playbook_reverse_proxy_type awareness
2023-02-12 16:03:44 +02:00
Slavi Pantaleev
73435dfe10
Announce Traefik support
2023-02-12 15:53:18 +02:00
Slavi Pantaleev
b3f6436a0d
Do not enable the Traefik role when reverse-proxy = other-traefik-container
2023-02-12 15:50:18 +02:00
Slavi Pantaleev and GitHub
709e528f60
Merge pull request #2462 from FSG-Cat/patch-4
...
Upgrade Drapunir from 1.8.0 Beta to 1.8.0 release.
2023-02-12 08:18:58 +02:00
Slavi Pantaleev and GitHub
e41840e184
Merge pull request #2463 from JokerGermany/patch-1
...
Add Draupnir to the Readme
2023-02-12 08:17:59 +02:00
Slavi Pantaleev and GitHub
4ab915f385
Merge pull request #2460 from FSG-Cat/Mjolnir/Drapunir-Crash-on-start/Dimension-Crash-on-start
...
Fix Dimension,Mjolnir and Drapunir crashing upon startup just to recover.
2023-02-11 19:24:20 +02:00
Slavi Pantaleev
6b0650641b
Update matrix_playbook_reverse_proxy_type documentation
2023-02-11 08:58:53 +02:00
Slavi Pantaleev
94be74e633
Improve traefik-certs-dumper defaults for other-traefik-container setups
...
We'd like to auto-enable traefik-certs-dumper for these setups.
`devture_traefik_certs_dumper_ssl_dir_path` will be empty though,
so the role's validation will point people in the right direction.
2023-02-11 08:54:07 +02:00
Slavi Pantaleev
f37a7a21f1
Delay Postmoogle startup to help Traefik-based setups
2023-02-11 08:53:32 +02:00
Slavi Pantaleev
8309a21303
Rename reverse proxy types and fix Hookshot http/https urlPrefix issue
2023-02-11 08:44:11 +02:00
Slavi Pantaleev
3f2cb840b9
Merge branch 'master' into traefik
2023-02-11 07:46:35 +02:00
Slavi Pantaleev
ad22bdb884
Do not run matrix-user-verification-service validation tasks unless the service is enabled
2023-02-10 19:40:03 +02:00
Slavi Pantaleev
7142ff422d
Ensure matrix_user_verification_service_uvs_access_token is always defined
...
The playbook tries to avoid such variables which are sometimes defined
and sometimes not. We'd rather not check for `is defined`.
2023-02-10 19:40:03 +02:00
Slavi Pantaleev
97f65e8dff
Minor fixes to allow for Traefik without SSL
2023-02-10 19:36:06 +02:00
Slavi Pantaleev and GitHub
ddad722e78
Merge pull request #2458 from etkecc/patch-164
...
Update Hydrogen 0.3.6 -> 0.3.7
2023-02-10 16:53:13 +02:00
Slavi Pantaleev
a5afa4eac9
Merge branch 'master' into traefik
2023-02-10 16:11:58 +02:00
Slavi Pantaleev
c773a005ae
Fix broken link to Matrix User Verification Service
2023-02-10 16:11:52 +02:00
Slavi Pantaleev
28d2eb593c
Add matrix_playbook_reverse_proxy_type variable which influences all other services
2023-02-10 16:04:34 +02:00
Slavi Pantaleev and GitHub
8263228ffb
Merge pull request #2457 from FSG-Cat/patch-3
...
Fix formating error in Draupnir docs
2023-02-10 14:40:59 +02:00
Slavi Pantaleev
06ccd71edc
Merge branch 'master' into traefik
2023-02-10 14:37:59 +02:00
Slavi Pantaleev
6db3c8f2ad
Announce Matrix Authentication Support for Jitsi
...
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2375
2023-02-10 14:26:41 +02:00
Slavi Pantaleev
f6ab162fff
Remove systemd-reloading handler in matrix-user-verification-service
...
None of the other roles use handlers.
We rely on com.devture.ansible.role.systemd_service_manager to reload services when it's necessary to do so.
2023-02-10 14:22:37 +02:00
Slavi Pantaleev
e1bfa2a7d6
Fix ansible-lint-reported errors
2023-02-10 14:21:31 +02:00
Slavi Pantaleev
43a6a035a0
Skip removing /.well-known/element directory to suppress ansible-lint error
...
Leaving an orphan directory is okay and can be improved later on.
2023-02-10 14:16:00 +02:00
Slavi Pantaleev
01ccec2dbe
Merge branch 'master' into pr-jitsi-matrix-authentication
2023-02-10 14:12:47 +02:00
Slavi Pantaleev
600aaa0bc7
Announce Draupnir support
...
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2451
2023-02-10 11:52:31 +02:00
Slavi Pantaleev and GitHub
7cdf59d79b
Merge pull request #2451 from FSG-Cat/draupnir
...
Add Draupnir support to the project.
2023-02-10 11:43:30 +02:00
Slavi Pantaleev and GitHub
0a15e56641
Fix typo
2023-02-10 11:41:44 +02:00
Slavi Pantaleev and GitHub
d6c8ea3742
Merge pull request #2452 from borisrunakov/update-matrix-chatgpt-bot
...
update matrix-chatgpt-bot
2023-02-10 08:29:00 +02:00
Slavi Pantaleev and GitHub
7fb7e7cd69
Merge pull request #2454 from etkecc/patch-163
...
Update postmoogle 0.9.11 -> 0.9.12
2023-02-09 21:47:30 +02:00
Slavi Pantaleev
c289996cd9
Upgrade com.devture.ansible.role.traefik
2023-02-09 10:16:41 +02:00
Slavi Pantaleev
a5683a6449
Upgrade com.devture.ansible.role.traefik and rename some variables
2023-02-09 10:12:09 +02:00
Slavi Pantaleev
88a26758e1
Merge branch 'master' into traefik
2023-02-08 18:48:10 +02:00
Slavi Pantaleev
c71567477a
Stop using deprecated matrix_bot_postmoogle_domain variable in group vars
2023-02-08 18:48:01 +02:00
Slavi Pantaleev
1338963b6c
Add support for obtaining additional SSL certificates via Traefik
2023-02-08 18:47:19 +02:00
Slavi Pantaleev
49a1985750
Fix Postmoogle systemd service description
2023-02-08 16:45:58 +02:00
Slavi Pantaleev
9a71a5696b
Allow Postmoogle to work with SSL certificates extracted from Traefik
2023-02-08 16:45:03 +02:00
Slavi Pantaleev
ddf6b2d4ee
Handle matrix_playbook_reverse_proxy_type being "none" when deciding on Coturn certificate parameters
2023-02-08 16:24:43 +02:00
Slavi Pantaleev
d44d4b637f
Allow Coturn to work with SSL certificates extracted from Traefik
2023-02-08 16:06:46 +02:00
Slavi Pantaleev
c07630ed51
Add com.devture.ansible.role.traefik_certs_dumper role
...
With this, other roles (like Coturn, Postmoogle) will be able
to use SSL certificates extracted from Traefik
via https://github.com/ldez/traefik-certs-dumper
2023-02-08 16:05:38 +02:00
Slavi Pantaleev and GitHub
65b8e0f4ef
Merge pull request #2446 from etkecc/patch-162
...
Update heisenbridge 1.14.1 -> 1.14.2
2023-02-07 11:15:19 +02:00
Slavi Pantaleev
2b9061a5d3
Add support for reverse-proxying the base domain via Traefik
2023-02-07 11:02:02 +02:00
Slavi Pantaleev
6c17671abd
Upgrade synapse-admin (0.8.6 -> 0.8.7) and drop reverse-proxy workaround
...
Related to 6a31fba346 , 6a31fba346 .
Related to https://github.com/Awesome-Technologies/synapse-admin/issues/322
2023-02-07 10:45:19 +02:00
Slavi Pantaleev
66baef5bf6
Fix matrix-synapse-reverse-proxy-companion.service stopping during uninstallation
...
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2444
2023-02-07 08:48:50 +02:00
Slavi Pantaleev
8155f780e5
Add support for reverse-proxying Matric (Client & Federation) via Traefik
2023-02-06 13:08:11 +02:00
Slavi Pantaleev
f983604695
Initial work on Traefik support
...
This gets us started on adding a Traefik role and hooking Traefik:
- directly to services which support Traefik - we only have a few of
these right now, but the list will grow
- to matrix-nginx-proxy for most services that integrate with
matrix-nginx-proxy right now
Traefik usage should be disabled by default for now and nothing should
change for people just yet.
Enabling these experiments requires additional configuration like this:
```yaml
devture_traefik_ssl_email_address: '.....'
matrix_playbook_traefik_role_enabled: true
matrix_playbook_traefik_labels_enabled: true
matrix_ssl_retrieval_method: none
matrix_nginx_proxy_https_enabled: false
matrix_nginx_proxy_container_http_host_bind_port: ''
matrix_nginx_proxy_container_federation_host_bind_port: ''
matrix_nginx_proxy_trust_forwarded_proto: true
matrix_nginx_proxy_x_forwarded_for: '$proxy_add_x_forwarded_for'
matrix_coturn_enabled: false
```
What currently works is:
reverse-proxying for all nginx-proxy based services **except** for the Matrix homeserver
(both Client-Server an Federation traffic for the homeserver don't work yet)
2023-02-06 10:34:51 +02:00
Slavi Pantaleev
946bbe9734
Upgrade prometheus_node_exporter (v1.5.0-1 -> v1.5.0-2)
2023-02-06 09:54:34 +02:00
Slavi Pantaleev
5de5b5c62c
Upgrade prometheus_postgres_exporter (v0.11.1-1 -> v0.11.1-2)
2023-02-06 09:49:15 +02:00
Slavi Pantaleev
4d6a8d049d
Add matrix_nginx_proxy_container_network variable
2023-02-06 08:48:11 +02:00
Slavi Pantaleev
e018663ba4
Attach ma1sd/nginx-proxy/synapse-reverse-proxy-companion to additional networks in a better way
...
Switching from doing "post-start" loop hacks to running the container
in 3 steps: `create` + potentially connect to additional networks + `start`.
This way, the container would be connected to all its networks even at
the very beginning of its life.
2023-02-06 08:38:43 +02:00
Slavi Pantaleev
045ed94d43
Upgrade prometheus_postgres_exporter (v0.11.1-0 -> v0.11.1-1)
2023-02-05 10:54:51 +02:00
Slavi Pantaleev
be78b74fbd
Switch from matrix-prometheus-postgres-exporter to an external prometheus_postgres_exporter role
2023-02-05 10:32:09 +02:00
Slavi Pantaleev
2d7d5d4bab
Use new security-opt syntax (: -> =)
...
Related to https://docs.docker.com/engine/deprecated/#separator--of---security-opt-flag-on-docker-run
2023-02-03 20:36:24 +02:00
Slavi Pantaleev and GitHub
919f9701ce
Merge pull request #2443 from FSG-Cat/patch-2
...
Update Prometheus to v2.42.0 from v2.41.0
2023-02-02 17:32:06 +02:00
Slavi Pantaleev and GitHub
4027531957
Merge pull request #2440 from etkecc/patch-161
...
Fix python packages path in synapse container
2023-02-01 08:28:29 +02:00
Slavi Pantaleev and GitHub
7cb140b987
Downgrade Prometheus (v2.42.0 -> v2.41.0) until a container image gets published
...
Container image not published yet.
Reverts #2438
2023-01-31 23:24:20 +02:00
Slavi Pantaleev and GitHub
d42ef7d243
Merge pull request #2439 from etkecc/patch-160
...
Update synapse 1.75.0 -> 1.76.0; default room version 9 -> 10
2023-01-31 22:44:04 +02:00
Slavi Pantaleev and GitHub
c8ce83c725
Merge pull request #2438 from etkecc/patch-159
...
Update prometheus 2.41.0 -> 2.42.0
2023-01-31 22:43:34 +02:00
Slavi Pantaleev and GitHub
c65d165c1b
Merge pull request #2437 from etkecc/patch-158
...
Update element 1.11.21 -> 1.11.22
2023-01-31 22:42:59 +02:00
Slavi Pantaleev
c7767e9bc8
Upgrade Coturn (4.6.1-r0 -> 4.6.1-r1)
2023-01-31 20:25:59 +02:00
Slavi Pantaleev and GitHub
66bb2943b4
Merge pull request #2436 from etkecc/patch-157
...
Update jitsi stable-8218 -> stable-8252
2023-01-31 18:03:08 +02:00
Slavi Pantaleev and GitHub
f5a85af47d
Merge pull request #2435 from etkecc/patch-156
...
Update element 1.11.20 -> 1.11.21
2023-01-31 18:02:38 +02:00
Slavi Pantaleev and GitHub
dae1640070
Merge pull request #2433 from etkecc/patch-155
...
Update cinny 2.2.3 -> 2.2.4
2023-01-30 09:14:31 +02:00
Slavi Pantaleev
611a74bde2
Use |to_json in mautrix metrics configuration
...
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2427
2023-01-30 08:59:35 +02:00
Slavi Pantaleev
d7c0239e40
Enable metrics endpoint for mautrix bridges by default when Prometheus is enabled
...
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2427
This just enables the endpoint, which is somewhat helpful, but not
really enough to scrape them. Ideally, we'd be injecting these targets
into the Prometheus scrape config too.
For now, registering targets with Prometheus is very manual
(`matrix_prometheus_scraper_postgres_enabled`, `matrix_prometheus_scraper_hookshot_enabled`, ..).
This should be redone - e.g. a new `matrix_prometheus_scrape_config_jobs_auto` variable,
which is dynamically built in `group_vars/matrix_servers`.
2023-01-30 08:53:28 +02:00
Slavi Pantaleev
d82d0ad84b
Add _metrics_proxying_enabled variables to mautrix bridges
...
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2427
`metrics_enabled` should only expose the metrics locally, on the
container network, so that a local Prometheus can consume them.
Exposing them publicly should be done via a separate toggle (`metrics_proxying_enabled`).
This is how all other roles work, so this makes these mautrix roles consistent with the rest.
2023-01-30 08:50:57 +02:00
Slavi Pantaleev and GitHub
cad83ddca6
Merge pull request #2427 from alemairebe/mautrix-metrics
...
Mautrix metrics
2023-01-30 08:36:40 +02:00
Slavi Pantaleev and GitHub
f9a496c29c
Merge pull request #2432 from shalzz/patch/slack
...
mautrix-slack: add team name in channel name template
2023-01-30 08:27:48 +02:00
Slavi Pantaleev and GitHub
389d6c978f
Merge pull request #2431 from etkecc/patch-154
...
Update borgmatic 1.7.5 -> 1.7.6
2023-01-29 21:51:42 +02:00
Slavi Pantaleev and GitHub
5482a9d5d0
Merge pull request #2429 from etkecc/patch-152
...
Update mautrix-discord latest -> 0.1.0
2023-01-29 21:02:39 +02:00