From 4cecd6609386d536d6c09fc4c74511e630954d5c Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 12 Jul 2023 16:41:58 +0300 Subject: [PATCH] feat: pikvm doesn't need certs because termination is handled at LB --- pikvm/acme_refresh/Makefile | 35 ----------------------------------- pikvm/acme_refresh/justfile | 7 ------- pikvm/acme_refresh/run.sh | 4 ---- 3 files changed, 46 deletions(-) delete mode 100644 pikvm/acme_refresh/Makefile delete mode 100755 pikvm/acme_refresh/justfile delete mode 100755 pikvm/acme_refresh/run.sh diff --git a/pikvm/acme_refresh/Makefile b/pikvm/acme_refresh/Makefile deleted file mode 100644 index 4329fed..0000000 --- a/pikvm/acme_refresh/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -# because we are using pikvm here and making use of its persistent storage, -# remember to run it as `kvmd-pstrun make` -# https://docs.pikvm.org/pst/ - -ifdef KVMD_PST_DATA # should be set to `/var/lib/kvmd/pst/data` -DATA_DIR := $(KVMD_PST_DATA) -else -DATA_DIR := /tmp -endif - -WD=$(DATA_DIR)/dags/acme_refresh - -.PHONY: all - -NGINX_RELOAD=$(WD)/nginx_reload - -all: $(NGINX_RELOAD) - -############################################################################### - -ACME_DIR=$(DATA_DIR)/acme -DOMAIN=monotremata.xyz -CERT_PATH=$(ACME_DIR)/$(DOMAIN) -CERT=$(CERT_PATH)/fullchain.cer -KEY=$(CERT_PATH)/$(DOMAIN).key - -############################################################################### - -$(NGINX_RELOAD): $(CERT) $(KEY) - @echo "reloading nginx" - mkdir -p $(@D) - systemctl reload kvmd-nginx - touch $@ - -############################################################################### diff --git a/pikvm/acme_refresh/justfile b/pikvm/acme_refresh/justfile deleted file mode 100755 index ba60f46..0000000 --- a/pikvm/acme_refresh/justfile +++ /dev/null @@ -1,7 +0,0 @@ -dag := justfile_directory() - -run: - kvmd-pstrun -- make --directory "{{dag}}" - -render: - make --file ../../common/render-dag.make diff --git a/pikvm/acme_refresh/run.sh b/pikvm/acme_refresh/run.sh deleted file mode 100755 index 547b304..0000000 --- a/pikvm/acme_refresh/run.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -DAG=$(dirname "$0") -kvmd-pstrun -- make -C "$DAG"