mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-13 19:00:14 +00:00
124fbeda04
This new role also adds native Traefik support and support for other (non-`amd64`) architectures via self-building.
33 lines
1.9 KiB
YAML
33 lines
1.9 KiB
YAML
---
|
|
|
|
- when: matrix_playbook_reverse_proxy_type not in ['playbook-managed-nginx', 'other-nginx-non-container']
|
|
name: Fail if reverse-proxy is not nginx
|
|
ansible.builtin.fail:
|
|
msg: >
|
|
Etherpad's integration into matrix-nginx-proxy's Dimension server only makes sense if you're using matrix-nginx-proxy.
|
|
`matrix_playbook_reverse_proxy_type` ({{ matrix_playbook_reverse_proxy_type }}) indicates that you're using another reverse-proxy.
|
|
If you're using Traefik, you should configure `etherpad_hostname` and `etherpad_path_prefix` instead.
|
|
|
|
- when: not matrix_dimension_enabled
|
|
name: Fail if Dimension not enabled
|
|
ansible.builtin.fail:
|
|
msg: >
|
|
Etherpad's integration into matrix-nginx-proxy's Dimension server only makes sense if you're using Dimension.
|
|
Looks like Dimension is not enabled in your configuration (judging by `matrix_dimension_enabled`).
|
|
Consider configuring `etherpad_hostname` and `etherpad_path_prefix` instead.
|
|
|
|
- when: etherpad_hostname != matrix_server_fqn_dimension
|
|
name: Fail if Etherpad hostname does not match Dimension hostname
|
|
ansible.builtin.fail:
|
|
msg: >
|
|
Etherpad's integration into matrix-nginx-proxy's Dimension server requires that you set `etherpad_hostname` to `matrix_server_fqn_dimension`.
|
|
Consider adding this to your configuration: `{% raw %}etherpad_hostname: "{{ matrix_server_fqn_dimension }}"{% endraw %}`
|
|
|
|
- when: etherpad_nginx_proxy_dimension_integration_path_prefix == '/'
|
|
name: Fail if / path prefix used for Etherpad
|
|
ansible.builtin.fail:
|
|
msg: >
|
|
Etherpad's integration into matrix-nginx-proxy's Dimension server only makes sense if you're using a non-`/` path for Etherpad.
|
|
You've chosen a path prefix of `/` in `etherpad_nginx_proxy_dimension_integration_path_prefix`.
|
|
The `/` path must go to Dimension itself, so you need to pick a different prefix (e.g. `/etherpad`).
|