|
|
@ -34,16 +34,14 @@ case "$1" in |
|
|
|
sed -i "s/#\ server_names_hash_bucket_size\ 64/\ server_names_hash_bucket_size\ 64/" /etc/nginx/nginx.conf |
|
|
|
sed -i "s/#\ server_names_hash_bucket_size\ 64/\ server_names_hash_bucket_size\ 64/" /etc/nginx/nginx.conf |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -f /etc/ssl/$JVB_HOSTNAME.key] || [ ! -f /etc/ssl/$JVB_HOSTNAME.crt]; then |
|
|
|
# loading debconf |
|
|
|
# loading debconf |
|
|
|
. /usr/share/debconf/confmodule |
|
|
|
. /usr/share/debconf/confmodule |
|
|
|
|
|
|
|
|
|
|
|
# SSL for nginx |
|
|
|
# SSL for nginx |
|
|
|
db_get jitsi-meet/cert-choice |
|
|
|
db_get jitsi-meet/cert-choice |
|
|
|
CERT_CHOICE="$RET" |
|
|
|
CERT_CHOICE="$RET" |
|
|
|
if [ "$CERT_CHOICE" = 'I want a generated self-signed certificate' ]; then |
|
|
|
if [ "$CERT_CHOICE" = 'I have a certificate and will upload the files on the server' ]; then |
|
|
|
# self-signed certificate is already in place for prosody |
|
|
|
|
|
|
|
: |
|
|
|
|
|
|
|
elif [ "$CERT_CHOICE" = 'I have a certificate and will upload the files on the server' ]; then |
|
|
|
|
|
|
|
db_set jitsi-meet/cert-path-key "/etc/ssl/$JVB_HOSTNAME.key" |
|
|
|
db_set jitsi-meet/cert-path-key "/etc/ssl/$JVB_HOSTNAME.key" |
|
|
|
db_input critical jitsi-meet/cert-path-key || true |
|
|
|
db_input critical jitsi-meet/cert-path-key || true |
|
|
|
db_go |
|
|
|
db_go |
|
|
@ -64,6 +62,7 @@ case "$1" in |
|
|
|
sed -i "s/ssl_certificate\ \/var\/lib\/prosody\/.*crt/ssl_certificate\ $CERT_CRT_ESC/g" \ |
|
|
|
sed -i "s/ssl_certificate\ \/var\/lib\/prosody\/.*crt/ssl_certificate\ $CERT_CRT_ESC/g" \ |
|
|
|
/etc/nginx/sites-available/$JVB_HOSTNAME.conf |
|
|
|
/etc/nginx/sites-available/$JVB_HOSTNAME.conf |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# and we're done with debconf |
|
|
|
# and we're done with debconf |
|
|
|
db_stop |
|
|
|
db_stop |
|
|
|