From 1a06729fdb22e9e2992412cc1fcf9feeab72e596 Mon Sep 17 00:00:00 2001 From: olli Date: Thu, 24 Aug 2023 15:46:17 +0200 Subject: [PATCH] nextcloud.yml aktualisiert --- nextcloud.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/nextcloud.yml b/nextcloud.yml index d214094..dd6827e 100644 --- a/nextcloud.yml +++ b/nextcloud.yml @@ -308,6 +308,16 @@ do [ -f app.${app}.installed ] || docker-compose exec -T -u www-data nextcloud.{{ ansible_facts['hostname'] }}.dedyn.io ./occ app:disable ${app} | tee -a nextcloud.update.log >app.${app}.disabled 2>&1 done + + # stun/turn server + if [ -s /home/docker/turn.{{inventory_hostname}}/env ] + then + source /home/docker/turn.{{inventory_hostname}}/env + docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:turn:add --secret $TURN_SECRET turns turn.{{inventory_hostname}}:5349 udp,tcp + docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:stun:add turn.{{inventory_hostname}}:5349 + docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:stun:delete stun.nextcloud.com:443 + fi + exit 0 backup: yes validate: /bin/bash -n %s @@ -340,12 +350,17 @@ docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ files:scan --all docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ maps:scan-photos docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ db:convert-filecache-bigint -n - # define turn server + # define stun/turn server maybe new password if [ -s /home/docker/turn.{{inventory_hostname}}/env ] then + # turn source /home/docker/turn.{{inventory_hostname}}/env docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:turn:delete turns turn.{{inventory_hostname}}:5349 udp,tcp docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:turn:add --secret $TURN_SECRET turns turn.{{inventory_hostname}}:5349 udp,tcp + # stun + docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:stun:delete turn.{{inventory_hostname}}:5349 + docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:stun:add turn.{{inventory_hostname}}:5349 + docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:stun:delete stun.nextcloud.com:443 fi backup: yes validate: /bin/bash -n %s