This commit is contained in:
2025-11-22 09:57:32 -08:00
parent 17a31e8b56
commit 8b4591482c
75 changed files with 4977 additions and 6 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/sh
set -e
set -x
IFS=";"
apk add curl
echo certbot certonly \
-vvv \
--test-cert \
--preferred-challenges dns \
--authenticator dns-duckdns \
--dns-duckdns-token e4b5ca33-1f4d-494b-b06d-6dd4600df662 \
--dns-duckdns-propagation-seconds 120 \
--non-interactive \
--agree-tos \
--renew-by-default \
*.fbleagh-int.duckdns.org --email "stuart.stent@gmail.com"
echo curl -XPUT --data-bin "@/etc/letsencrypt/live/\*.fbleagh-int.duckdns.org/privkey.pem" http://$LETSCONSUL_CONSUL_URL:8500/v1/kv/letsconsul/$domain_main/privkey
echo curl -XPUT --data-bin "@/etc/letsencrypt/live/\*.fbleagh-int.duckdns.org/fullchain.pem" http://$LETSCONSUL_CONSUL_URL:8500/v1/kv/letsconsul/$domain_main/fullchain
done
echo curl -XPUT --data-bin @/var/log/letsencrypt/letsencrypt.log http://$LETSCONSUL_CONSUL_URL:8500/v1/kv/letsconsul/letsencrypt.log