From 306008a49eb904d5d07233a7b04998d8c555ce87 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 10 Nov 2016 11:19:41 +0000 Subject: [PATCH] cert within prosody config --- src/freedombone-app-jitsi | 1 + 1 file changed, 1 insertion(+) diff --git a/src/freedombone-app-jitsi b/src/freedombone-app-jitsi index 77bef685..72ab5e82 100755 --- a/src/freedombone-app-jitsi +++ b/src/freedombone-app-jitsi @@ -356,6 +356,7 @@ function install_jitsi { if [ -f /etc/ssl/certs/${JITSI_DOMAIN_NAME}.pem ]; then sed -i "s|.crt|.pem|g" $jitsi_nginx_site sed -i "s|.crt|.pem|g" /etc/prosody/conf.d/${JITSI_DOMAIN_NAME}.cfg.lua + sed -i "s|certificate =.*|certificate = \"${JITSI_DOMAIN_NAME}.pem\"|g" /etc/prosody/conf.avail/${JITSI_DOMAIN_NAME}.cfg.lua fi sed -i "s|.conf.crt|.crt|g" /etc/nginx/sites-available/${JITSI_DOMAIN_NAME}.conf sed -i "s|.conf.pem|.pem|g" /etc/nginx/sites-available/${JITSI_DOMAIN_NAME}.conf