use reverse_proxy role, traefik for jitsi

This commit is contained in:
uumas
2021-12-20 04:37:55 +02:00
parent 24dabf63aa
commit 8e5e0b3873
9 changed files with 49 additions and 37 deletions

View File

@@ -25,15 +25,3 @@
dest: "{{ element_config_volume.Source }}/config.json"
mode: '644'
- name: Add caddy reverse proxy config
blockinfile:
path: /etc/caddy/Caddyfile
marker: "# {mark} ANSIBLE MANAGED BLOCK element"
block: |
element.{{ domain }} chat.{{ domain }} {
reverse_proxy http://127.0.0.1:{{ ports.element_http }}
}
validate: 'caddy validate --config %s --adapter caddyfile'
backup: true
notify: reload caddy
when: reverse_proxy_type == 'caddy'