radicale certs

This commit is contained in:
Bob Mottram 2016-11-15 20:28:34 +00:00
parent 35794a7188
commit 70670d8000
1 changed files with 6 additions and 2 deletions

View File

@ -304,9 +304,9 @@ function install_radicale {
echo " listen [::]:${RADICALE_PORT} ssl;" >> /etc/nginx/sites-available/radicale
echo '' >> /etc/nginx/sites-available/radicale
function_check nginx_ssl
nginx_ssl $DEFAULT_DOMAIN_NAME
nginx_ssl radicale
function_check nginx_disable_sniffing
nginx_disable_sniffing $DEFAULT_DOMAIN_NAME
nginx_disable_sniffing radicale
echo '' >> /etc/nginx/sites-available/radicale
echo " server_name $DEFAULT_DOMAIN_NAME;" >> /etc/nginx/sites-available/radicale
@ -337,6 +337,10 @@ function install_radicale {
echo ' }' >> /etc/nginx/sites-available/radicale
echo '}' >> /etc/nginx/sites-available/radicale
sed -i "s|radicale.crt|${DEFAULT_DOMAIN_NAME}.crt|g" /etc/nginx/sites-available/radicale
sed -i "s|radicale.pem|${DEFAULT_DOMAIN_NAME}.pem|g" /etc/nginx/sites-available/radicale
sed -i "s|radicale.dhparam|${DEFAULT_DOMAIN_NAME}.dhparam|g" /etc/nginx/sites-available/radicale
# create a certificate
#if [[ "$(cert_exists ${DEFAULT_DOMAIN_NAME} pem)" == "0" ]]; then
# if [[ "$(cert_exists $DEFAULT_DOMAIN_NAME)" == "0" ]]; then