usage() {
cat <<EOF
Usage: ${0##*/} [EXTRA_SETTINGS_FILE] DOMAIN
+Note: this is less tested and mature than the apache site script.
+
Setup nginx config with https using
ssl config provided by let's encrypt and my standard
location for storing certs.
EXTRA_SETTINGS_FILE can be - for stdin
-p PORT Proxy to PORT
-h|--help Print help and exit
--- Subsequent arguments are never treated as options
-Note: options and non-options can be in any order.
TODO: add https redir site.
EOF
exit $1
sudo tee -a /etc/nginx/sites-enabled/$h.conf <<EOF
}
EOF
-s mkdir -p /var/www/$h/html
-s chown -R ian:ian /var/www/$h
-ser restart nginx
+sudo mkdir -p /var/www/$h/html
+sudo chown -R ian:ian /var/www/$h
+sudo service nginx restart