Ensure that letsencrypt certs are not used for the local domain
This commit is contained in:
parent
731c2f000f
commit
4ea4d6ed5f
|
@ -1186,6 +1186,9 @@ function install_web_local_user_interface {
|
||||||
"${PROJECT_NAME}-addcert" -h "${local_hostname}" --dhkey "${DH_KEYLENGTH}"
|
"${PROJECT_NAME}-addcert" -h "${local_hostname}" --dhkey "${DH_KEYLENGTH}"
|
||||||
fi
|
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}"
|
nginx_ensite "${local_hostname}"
|
||||||
|
|
||||||
# Compatibility with FreedomBox android app
|
# Compatibility with FreedomBox android app
|
||||||
|
|
Loading…
Reference in New Issue