From 76583d77e22f094126e24db402f5c00202c41c19 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 9 Jan 2023 07:48:21 +0100 Subject: [PATCH] configure proxy for takahe --- tobru-ch/cm-caddyfile.yaml | 8 ++++++-- tobru-ch/ghost-ingress.yaml | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/tobru-ch/cm-caddyfile.yaml b/tobru-ch/cm-caddyfile.yaml index 97115a2..7c13bf0 100644 --- a/tobru-ch/cm-caddyfile.yaml +++ b/tobru-ch/cm-caddyfile.yaml @@ -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" + } + } diff --git a/tobru-ch/ghost-ingress.yaml b/tobru-ch/ghost-ingress.yaml index a512d5d..4631c14 100644 --- a/tobru-ch/ghost-ingress.yaml +++ b/tobru-ch/ghost-ingress.yaml @@ -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: