Mercurial Hosting > luan
diff host/update.sh @ 2037:a4435e2e3417 acme-tiny
Edit scripts to use acme-tiny
| author | Violet7 |
|---|---|
| date | Sat, 08 Nov 2025 04:29:49 -0800 |
| parents | 61b0cc7db09c |
| children |
line wrap: on
line diff
--- a/host/update.sh Wed Nov 05 21:49:39 2025 -0800 +++ b/host/update.sh Sat Nov 08 04:29:49 2025 -0800 @@ -14,15 +14,15 @@ rm -f logs/* hg identify >logs/changeset.txt -if [ ! -f local/leKey.txt ]; then - echo Register letsencrypt - ./acme.sh --set-default-ca --server letsencrypt - ./acme.sh --register-account --server letsencrypt --cert-home ./sites --config-home local/letsencrypt/config 2>&1 | grep 'ACCOUNT_THUMBPRINT' | awk -F "'" '{print $2}' >local/leKey.txt +if [ ! -f local/tiny_account.key ]; then + echo "Register letsencrypt (tiny-acme)" + openssl genrsa 4096 > local/tiny_account.key fi cp startup/nginx/mime.types local/mime.types +# id -gn gets the name of the primary group of the current user (staff) luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) >local/nginx.conf -luan startup/nginx/nginx.default.conf.luan $(pwd) $(cat local/leKey.txt) >local/nginx.default.conf +luan startup/nginx/nginx.default.conf.luan $(pwd) >local/nginx.default.conf echo Starting... ./start.sh
