Ensure that letsencrypt certs are not used for the local domain

This commit is contained in:
Bob Mottram 2018-05-26 15:44:13 +01:00
parent 731c2f000f
commit 4ea4d6ed5f
1 changed files with 3 additions and 0 deletions

View File

@ -1186,6 +1186,9 @@ function install_web_local_user_interface {
"${PROJECT_NAME}-addcert" -h "${local_hostname}" --dhkey "${DH_KEYLENGTH}"
fi
sed -i "s|ssl_certificate .*|ssl_certificate /etc/ssl/certs/${local_hostname}.crt;|g" "$nginx_file"
sed -i "s|ssl_certificate_key .*|ssl_certificate_key /etc/ssl/private/${local_hostname}.key;|g" "$nginx_file"
nginx_ensite "${local_hostname}"
# Compatibility with FreedomBox android app