diff --git a/nextcloud/ansible/roles/turn/templates/copy_coturn_certs.sh.j2 b/nextcloud/ansible/roles/turn/templates/copy_coturn_certs.sh.j2 index 3ce6d71..e87ebd0 100644 --- a/nextcloud/ansible/roles/turn/templates/copy_coturn_certs.sh.j2 +++ b/nextcloud/ansible/roles/turn/templates/copy_coturn_certs.sh.j2 @@ -4,3 +4,4 @@ cp -H /etc/letsencrypt/live/{{ turn_fqdn }}/fullchain.pem /etc/pki/coturn/public cp -H /etc/letsencrypt/live/{{ turn_fqdn }}/privkey.pem /etc/pki/coturn/private/ chgrp coturn /etc/pki/coturn/private/privkey.pem chmod g+r /etc/pki/coturn/private/privkey.pem +systemctl restart coturn diff --git a/nextcloud/ansible/roles/turn/templates/turnserver.j2 b/nextcloud/ansible/roles/turn/templates/turnserver.j2 index 06f3b59..1d064cd 100644 --- a/nextcloud/ansible/roles/turn/templates/turnserver.j2 +++ b/nextcloud/ansible/roles/turn/templates/turnserver.j2 @@ -9,8 +9,8 @@ stale-nonce {% if turn_letsencrypt_certificate_enabled %} # certificados -cert={{ turn_fullchain }} -pkey={{ turn_key }} +cert=/etc/pki/coturn/public/fullchain.pem +pkey=/etc/pki/coturn/private/privkey.pem {% endif %} # logs diff --git a/nextcloud/ansible/vars/RedHat.yaml b/nextcloud/ansible/vars/RedHat.yaml index d2b6fbe..d4f7eab 100644 --- a/nextcloud/ansible/vars/RedHat.yaml +++ b/nextcloud/ansible/vars/RedHat.yaml @@ -85,9 +85,9 @@ nextcloud_talk_stun_server: turn0.softwarelibre.mx:443 turn_fqdn: turn1.softwarelibre.mx turn_firewalld_enabled: false turn_letsencrypt_certificate_enabled: true +turn_static_auth_secret: ElSoftwareLibre turn_fullchain: /etc/pki/tls/certs/turn1.softwarelibre.mx-fullchain.crt turn_key: /etc/pki/tls/private/letsencrypt_account.key -turn_static_auth_secret: ElSoftwareLibre # nats nats_firewalld_enabled: false