Mercurial Hosting > hghosting
view addHostSsl.sh @ 7:46f6b69e8b10
better handling of missing mail_info
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 03 Jun 2022 09:57:45 -0600 |
parents | dfc36e7ed22c |
children |
line wrap: on
line source
#!/bin/bash set -e if [ $# -ne 1 ]; then echo "usage: $0 domain.name"; exit 1; fi; HOST="$1"; ROOTPWD=$(pwd); mkdir -p "$ROOTPWD/local/ssl"; cd letsencrypt; ./acme.sh --issue -d "$HOST" --stateless --cert-home "$ROOTPWD/local/ssl" --config-home "$ROOTPWD"/letsencrypt/config; cd ../; ./luan.sh nginx.ssl.conf.luan $ROOTPWD "$HOST" > config/nginx.ssl."$HOST".conf; sudo /usr/local/bin/nginx -s reload;