summaryrefslogtreecommitdiff
path: root/roles/webservers/templates
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-04-11 17:18:35 -0400
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-04-11 17:18:35 -0400
commit64a2990c536b8a436279db9c576e75c6c1782546 (patch)
tree38865c297094d8a930fd7ee1ede97ac4ebe9fd79 /roles/webservers/templates
parentd740b6ab3347c66742e37ff72dfb4cfe30558781 (diff)
downloadoldinfra-64a2990c536b8a436279db9c576e75c6c1782546.tar.gz
oldinfra-64a2990c536b8a436279db9c576e75c6c1782546.zip
hatecomputers.club stuff
Diffstat (limited to 'roles/webservers/templates')
-rw-r--r--roles/webservers/templates/plugin.sh.j218
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/webservers/templates/plugin.sh.j2 b/roles/webservers/templates/plugin.sh.j2
new file mode 100644
index 0000000..796f078
--- /dev/null
+++ b/roles/webservers/templates/plugin.sh.j2
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+unset REQUESTS_CA_BUNDLE
+
+API_KEY_FILE=$(mktemp)
+echo "{{ hatecomputers_api_key }}" >> $API_KEY_FILE
+
+ENDPOINT=https://hatecomputers.club
+PUBLIC_SUFFIXES=.hatecomputers.club
+
+/root/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
+
+rm $API_KEY_FILE