Skip to content
Snippets Groups Projects
Commit 16646473 authored by Bob Mottram's avatar Bob Mottram
Browse files

Certificate paths

parent 098e2692
No related branches found
No related tags found
No related merge requests found
......@@ -362,22 +362,24 @@ function install_jitsi {
mv /etc/ssl/certs/${JITSI_DOMAIN_NAME}.crt /etc/ssl/certs/${JITSI_DOMAIN_NAME}.pem
fi
# ensure that certs are available to prosody with correct permissions
cp /etc/ssl/certs/${JITSI_DOMAIN_NAME}.* /etc/prosody/certs
cp /etc/ssl/private/${JITSI_DOMAIN_NAME}.key /etc/prosody/certs
chown prosody:prosody /etc/prosody/certs/${JITSI_DOMAIN_NAME}.*
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|key =.*|key = \"/etc/ssl/private/${JITSI_DOMAIN_NAME}.key\"|g" /etc/prosody/conf.avail/${JITSI_DOMAIN_NAME}.cfg.lua
sed -i "s|certificate =.*|certificate = \"/etc/ssl/certs/${JITSI_DOMAIN_NAME}.pem\"|g" /etc/prosody/conf.avail/${JITSI_DOMAIN_NAME}.cfg.lua
fi
sed -i "s|key =.*|key = \"/etc/prosody/certs/${JITSI_DOMAIN_NAME}.key\"|g" /etc/prosody/conf.avail/${JITSI_DOMAIN_NAME}.cfg.lua
sed -i "s|certificate =.*|certificate = \"/etc/prosody/certs/${JITSI_DOMAIN_NAME}.pem\"|g" /etc/prosody/conf.avail/${JITSI_DOMAIN_NAME}.cfg.lua
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
sed -i "s|.conf.key|.key|g" /etc/nginx/sites-available/${JITSI_DOMAIN_NAME}.conf
sed -i "s|.conf.dhparam|.dhparam|g" /etc/nginx/sites-available/${JITSI_DOMAIN_NAME}.conf
# ensure that certs are available to prosody with correct permissions
cp /etc/ssl/certs/${JITSI_DOMAIN_NAME}.* /etc/prosody/certs
cp /etc/ssl/private/${JITSI_DOMAIN_NAME}.key /etc/prosody/certs
chown prosody:prosody /etc/prosody/certs/${JITSI_DOMAIN_NAME}.*
function_check nginx_ensite
nginx_ensite ${JITSI_DOMAIN_NAME}.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment