From 64a2990c536b8a436279db9c576e75c6c1782546 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Thu, 11 Apr 2024 17:18:35 -0400 Subject: hatecomputers.club stuff --- roles/webservers/templates/plugin.sh.j2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 roles/webservers/templates/plugin.sh.j2 (limited to 'roles/webservers/templates/plugin.sh.j2') 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 -- cgit v1.2.3-70-g09d2