diff options
Diffstat (limited to '')
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | Makefile | 23 | ||||
-rw-r--r-- | meta.json | 4 | ||||
-rw-r--r-- | src/content/.well-known/security.txt | 4 |
4 files changed, 31 insertions, 4 deletions
@@ -14,3 +14,7 @@ feed.xmldeps feed.xml /src/global.conf *.gz +email.txt +baseurl.txt +expiry.txt +/src/content/.well-known/ @@ -126,12 +126,17 @@ derived-assets = \ $(articles.indexentry) \ $(articles.feedentry) \ $(articles.sortdata) \ + email.txt \ + baseurl.txt \ + expiry.txt \ + src/content/.well-known/security.txt \ side-assets = \ src/collections/*/*/*/*/*.html.*.txt \ src/collections/*/index.html.*.txt \ src/collections/*/*.sortdata \ src/pages/*/*.html.*.txt \ + src/content/.well-known/ \ @@ -161,6 +166,24 @@ $(contents.gz): src/content/public.asc: gpg --export --armour "`jq -r '.email' < meta.json`" > $@ +email.txt: meta.json + jq -r '.email' < meta.json > $@ + +baseurl.txt: meta.json + jq -r '.baseurl' < meta.json > $@ + +expiry.txt: src/content/public.asc + gpg --show-key --with-colons src/content/public.asc | \ + awk -F: '/^pub:/ { print $$7 }' | \ + xargs -I% date -Is -d@% > $@ + +src/content/.well-known/security.txt: email.txt baseurl.txt expiry.txt + mkdir -p $(@D) + printf 'Contact: mailto:%s\n' "`cat email.txt`" > $@ + printf 'Expires: %s\n' "`cat expiry.txt`" >> $@ + printf 'Encryption: %s/public.asc\n' "`cat baseurl.txt`" >> $@ + printf 'Preferred-Languages: en, pt, fr, eo, es\n' >> $@ + check-unit: diff --git a/meta.json b/meta.json new file mode 100644 index 0000000..b00a291 --- /dev/null +++ b/meta.json @@ -0,0 +1,4 @@ +{ + "baseurl": "https://euandre.org", + "email": "eu@euandre.org" +} diff --git a/src/content/.well-known/security.txt b/src/content/.well-known/security.txt deleted file mode 100644 index fc0f82f..0000000 --- a/src/content/.well-known/security.txt +++ /dev/null @@ -1,4 +0,0 @@ -Contact: mailto:eu@euandre.org -Expires: 2026-07-20T10:30:49-03:00 -Encryption: https://euandre.org/public.asc -Preferred-Languages: en, pt, fr, eo, es |