Mercurial Hosting > hghosting
annotate addHostSsl.sh @ 25:8a588847d730 default tip
update luan
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 07 Oct 2025 17:35:13 -0600 |
| parents | dfc36e7ed22c |
| children |
| rev | line source |
|---|---|
| 0 | 1 #!/bin/bash |
| 2 | |
| 3 set -e | |
| 4 | |
| 5 if [ $# -ne 1 ]; then | |
| 6 echo "usage: $0 domain.name"; | |
| 7 exit 1; | |
| 8 fi; | |
| 9 | |
| 10 HOST="$1"; | |
| 11 ROOTPWD=$(pwd); | |
| 12 | |
| 13 mkdir -p "$ROOTPWD/local/ssl"; | |
| 14 | |
| 15 cd letsencrypt; | |
| 16 ./acme.sh --issue -d "$HOST" --stateless --cert-home "$ROOTPWD/local/ssl" --config-home "$ROOTPWD"/letsencrypt/config; | |
| 17 cd ../; | |
| 18 | |
| 19 ./luan.sh nginx.ssl.conf.luan $ROOTPWD "$HOST" > config/nginx.ssl."$HOST".conf; | |
| 20 | |
| 21 sudo /usr/local/bin/nginx -s reload; |
