From: Ian Kelling Date: Wed, 26 Apr 2017 15:57:46 +0000 (-0700) Subject: slightly better docs X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=452c9b3203296546a1ae6c21fa4de5701a73f82a;p=basic-https-conf slightly better docs --- diff --git a/web-conf b/web-conf index 08d1c04..4dc3974 100755 --- a/web-conf +++ b/web-conf @@ -25,7 +25,11 @@ usage() { Usage: ${0##*/} [OPTIONS] [EXTRA_SETTINGS_FILE] apache2|nginx DOMAIN apache/nginx config & let's encrypt -If using tls then it expects certbot to be installed and in PATH. +If using tls then it expects certbot to be installed and in PATH. Also, +certbot cronjob should be taken care of outside this script. In the +debian package, it installs a systemd timer, which I (Ian Kelling) use +and modify to email me on failure. You can see how I do this in my git +repo distro-setup, and log-quiet. EXTRA_SETTINGS_FILE can be - for stdin @@ -115,7 +119,7 @@ if $ssl; then # when generating an example config, add all relevant security options: # --hsts --staple-ocsp --uir certbot certonly -n --must-staple --email $email --no-self-upgrade \ - --agree-tos --$t -d $h + --agree-tos --${t%2} -d $h rm $vhost_file fi fi