From 8e8d4bbf2f04ea3fb923cfaea9335c69023df546 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 30 Apr 2022 12:47:43 +0200 Subject: Add justfile to generate direct WKD directory justfile: Add just file to generate direct WKD directory using sq and automatically synchronize it with a remote server using rsync. --- justfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..4b27943 --- /dev/null +++ b/justfile @@ -0,0 +1,17 @@ +fqdn := "sleepmap.de" +remote := "dave@sleepmap.de" +location := "/srv/http/wkd" + +default: create_wkd + +create_certring: + sq -f keyring join -o certrings/{{fqdn}}.asc certs/{{fqdn}}/*/*.asc + +create_fqdn_wkd_dir: + # create a direct directory (e.g. https://example.com/.well-known/openpgpkey/hu) + sq -f wkd generate -d output/{{fqdn}} {{fqdn}} certrings/{{fqdn}}.asc + +sync_wkd_dir: + rsync -rv --delete output/{{fqdn}}/ {{remote}}:{{location}}/{{fqdn}} + +create_wkd: create_certring create_fqdn_wkd_dir sync_wkd_dir -- cgit v1.2.3-70-g09d2