configure proxy for takahe
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tobias Brunner 2023-01-09 07:48:21 +01:00
parent ee5ea42d25
commit 76583d77e2
Signed by: tobru
SSH Key Fingerprint: SHA256:kywVhvCA+MIxL6eBgoQa+BfC/ROJqcfD2bpy1PR6Ebk
2 changed files with 20 additions and 2 deletions

View File

@ -3,5 +3,9 @@ kind: ConfigMap
metadata:
name: caddyconfig
data:
Caddyfile: "http://: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"
Caddyfile: |
http://:8080 {
reverse_proxy https://social.tobru.ch {
header_up Host "social.tobru.ch"
}
}

View File

@ -24,6 +24,20 @@ spec:
name: ghost
port:
number: 8080
- path: /.well-known/nodeinfo
pathType: Prefix
backend:
service:
name: ghost
port:
number: 8080
- path: /.well-known/host-meta
pathType: Prefix
backend:
service:
name: ghost
port:
number: 8080
- path: /
pathType: Prefix
backend: