prosody certs
This commit is contained in:
parent
69f2ec8735
commit
da4f38a41a
|
@ -427,14 +427,20 @@ function install_jitsi {
|
||||||
|
|
||||||
if [ -f /etc/ssl/certs/${JITSI_DOMAIN_NAME}.pem ]; then
|
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" $jitsi_nginx_site
|
||||||
|
sed -i "s|.crt|.pem|g" /etc/prosody/conf.d/${JITSI_DOMAIN_NAME}.cfg.lua
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
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
|
function_check nginx_ensite
|
||||||
nginx_ensite ${JITSI_DOMAIN_NAME}
|
nginx_ensite ${JITSI_DOMAIN_NAME}
|
||||||
|
|
||||||
set_completion_param "jitsi domain" "$JITSI_DOMAIN_NAME"
|
set_completion_param "jitsi domain" "$JITSI_DOMAIN_NAME"
|
||||||
|
|
||||||
systemctl restart nginx
|
systemctl restart nginx
|
||||||
|
systemctl restart prosody
|
||||||
|
|
||||||
function_check add_ddns_domain
|
function_check add_ddns_domain
|
||||||
add_ddns_domain $JITSI_DOMAIN_NAME
|
add_ddns_domain $JITSI_DOMAIN_NAME
|
||||||
|
|
Loading…
Reference in New Issue