aboutsummaryrefslogtreecommitdiffstats
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile17
1 files changed, 17 insertions, 0 deletions
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