Skip to content
Snippets Groups Projects
Commit 6c7795b6 authored by Bob Mottram's avatar Bob Mottram
Browse files

Generate cert if needed

parent 1ef6b6e4
No related branches found
No related tags found
No related merge requests found
......@@ -198,6 +198,12 @@ fi
nginx_ensite ${site_domain}
if [ ! -f "/etc/letsencrypt/live/${site_domain}/fullchain.pem" ]; then
DH_KEYLENGTH=2048
LETSENCRYPT_SERVER='https://acme-v01.api.letsencrypt.org/directory'
${PROJECT_NAME}-addcert -e "${site_domain}" -s "$LETSENCRYPT_SERVER" --dhkey "$DH_KEYLENGTH"
fi
if [ ! "$lang" ]; then
lang='EN'
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment