basic installation
This commit is contained in:
parent
cde80d270c
commit
03b7532c2f
11
matrix.yml
11
matrix.yml
@ -25,6 +25,11 @@
|
||||
chdir: /home/docker/matrix.{{inventory_hostname}}
|
||||
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
|
||||
blockinfile:
|
||||
path: /home/docker/matrix.{{inventory_hostname}}/data/homeserver.yaml
|
||||
@ -64,6 +69,12 @@
|
||||
media_retention:
|
||||
local_media_lifetime: 28d
|
||||
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
|
||||
notify: Restart matrix
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user