From db88a4a8cc41ff604a112bda803f50b21865e3aa Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Thu, 11 Apr 2024 15:34:03 -0600 Subject: traefik! --- plugin.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 plugin.sh (limited to 'plugin.sh') diff --git a/plugin.sh b/plugin.sh new file mode 100755 index 0000000..ae234b9 --- /dev/null +++ b/plugin.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +unset REQUESTS_CA_BUNDLE + +API_KEY_FILE=/home/lizzy/git/hc-cert-dns/apikey.secret +ENDPOINT=https://hatecomputers.club +PUBLIC_SUFFIXES=.hatecomputers.club + +CERTBOT_DOMAIN=$(echo $2 | sed 's/^_acme-challenge\.//') +CERTBOT_VALIDATION=$3 + +/home/lizzy/git/hc-cert-dns/main.py --certbot \ + --public-suffixes=$PUBLIC_SUFFIXES \ + --certbot-domain=$CERTBOT_DOMAIN \ + --certbot-validation=$CERTBOT_VALIDATION \ + --endpoint=$ENDPOINT \ + --api-key-file=$API_KEY_FILE \ + --dns-propogate-time=5 -- cgit v1.2.3-70-g09d2