add caddy to the mix for webfinger
continuous-integration/drone/push Build is passing Details

an experiment
This commit is contained in:
Tobias Brunner 2022-11-23 17:52:18 +01:00
parent ae79396b80
commit f35aa2efad
Signed by: tobru
SSH Key Fingerprint: SHA256:kOXg1R6c11XW3/Pt9dbLdQvOJGFAy+B2K6v6PtRWBGQ
3 changed files with 23 additions and 0 deletions

4
tobru-ch/Caddyfile Normal file
View File

@ -0,0 +1,4 @@
http://localhost:8080 {
header content-type "application/jrd+json; charset=utf-8"
respond "{\"subject\":\"acct:tobru@mstdn.social\",\"aliases\":[\"https://mstdn.social/@tobru\",\"https://mstdn.social/users/tobru\"],\"links\":[{\"rel\":\"http://webfinger.net/rel/profile-page\",\"type\":\"text/html\",\"href\":\"https://mstdn.social/@tobru\"},{\"rel\":\"self\",\"type\":\"application/activity+json\",\"href\":\"https://mstdn.social/users/tobru\"},{\"rel\":\"http://ostatus.org/schema/1.0/subscribe\",\"template\":\"https://mstdn.social/authorize_interaction?uri={uri}\"}]}"
}

View File

@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: caddyconfig
data:
Caddyfile: "http://localhost:8080 {\n\theader content-type \"application/jrd+json;
charset=utf-8\"\n\trespond \"{\\\"subject\\\":\\\"acct:tobru@mstdn.social\\\",\\\"aliases\\\":[\\\"https://mstdn.social/@tobru\\\",\\\"https://mstdn.social/users/tobru\\\"],\\\"links\\\":[{\\\"rel\\\":\\\"http://webfinger.net/rel/profile-page\\\",\\\"type\\\":\\\"text/html\\\",\\\"href\\\":\\\"https://mstdn.social/@tobru\\\"},{\\\"rel\\\":\\\"self\\\",\\\"type\\\":\\\"application/activity+json\\\",\\\"href\\\":\\\"https://mstdn.social/users/tobru\\\"},{\\\"rel\\\":\\\"http://ostatus.org/schema/1.0/subscribe\\\",\\\"template\\\":\\\"https://mstdn.social/authorize_interaction?uri={uri}\\\"}]}\"\n}\n"

View File

@ -60,6 +60,14 @@ spec:
- name: data
mountPath: /var/lib/ghost/content
subPath: ghost
- image: docker.io/library/caddy:2.6.2-alpine
imagePullPolicy: IfNotPresent
name: caddy
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /etc/caddy
name: caddyfile
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
@ -69,3 +77,7 @@ spec:
- name: data
persistentVolumeClaim:
claimName: data
- configMap:
defaultMode: 420
name: caddyconfig
name: caddyfile