basic installation

This commit is contained in:
olli 2023-08-24 16:58:45 +02:00
parent cde80d270c
commit 03b7532c2f

View File

@ -25,6 +25,11 @@
chdir: /home/docker/matrix.{{inventory_hostname}} chdir: /home/docker/matrix.{{inventory_hostname}}
creates: /home/docker/matrix.{{inventory_hostname}}/data/homeserver.yaml creates: /home/docker/matrix.{{inventory_hostname}}/data/homeserver.yaml
- name: get turn secret
shell: bash -c 'source /home/docker/turn.defiant.dedyn.io/env ; echo $TURN_SECRET'
register: turnsecret
changed_when: false
- name: Edit Matrix/Synapse config - name: Edit Matrix/Synapse config
blockinfile: blockinfile:
path: /home/docker/matrix.{{inventory_hostname}}/data/homeserver.yaml path: /home/docker/matrix.{{inventory_hostname}}/data/homeserver.yaml
@ -64,6 +69,12 @@
media_retention: media_retention:
local_media_lifetime: 28d local_media_lifetime: 28d
remote_media_lifetime: 14d remote_media_lifetime: 14d
turn_uris:
- "turns:turn.{{inventory_hostname}}:5349?transport=udp"
- "turns:turn.{{inventory_hostname}}:5349?transport=tcp"
turn_shared_secret: "{{turnsecret.stdout}}"
turn_user_lifetime: 86400000
turn_allow_guests: True
backup: yes backup: yes
notify: Restart matrix notify: Restart matrix