add caddy to the mix for webfinger
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
an experiment
This commit is contained in:
parent
ae79396b80
commit
f35aa2efad
4
tobru-ch/Caddyfile
Normal file
4
tobru-ch/Caddyfile
Normal 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}\"}]}"
|
||||||
|
}
|
7
tobru-ch/cm-caddyfile.yaml
Normal file
7
tobru-ch/cm-caddyfile.yaml
Normal 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"
|
|
@ -60,6 +60,14 @@ spec:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /var/lib/ghost/content
|
mountPath: /var/lib/ghost/content
|
||||||
subPath: ghost
|
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
|
dnsPolicy: ClusterFirst
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
schedulerName: default-scheduler
|
schedulerName: default-scheduler
|
||||||
|
@ -69,3 +77,7 @@ spec:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: data
|
claimName: data
|
||||||
|
- configMap:
|
||||||
|
defaultMode: 420
|
||||||
|
name: caddyconfig
|
||||||
|
name: caddyfile
|
||||||
|
|
Reference in a new issue