feat: pikvm doesn't need certs because termination is handled at LB

main
Ricard Illa 2023-07-12 16:41:58 +03:00
parent 64af1579d5
commit 4cecd66093
3 changed files with 0 additions and 46 deletions

View File

@ -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 $@
###############################################################################

View File

@ -1,7 +0,0 @@
dag := justfile_directory()
run:
kvmd-pstrun -- make --directory "{{dag}}"
render:
make --file ../../common/render-dag.make

View File

@ -1,4 +0,0 @@
#!/bin/sh
DAG=$(dirname "$0")
kvmd-pstrun -- make -C "$DAG"