cert within prosody config

This commit is contained in:
Bob Mottram 2016-11-10 11:19:41 +00:00
parent d1b8206853
commit 306008a49e
1 changed files with 1 additions and 0 deletions

View File

@ -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