all repos — infra @ 0c2075ae8c175b6c20f4f406027aa1b54b651574

infrastructure manifests and setup notes

apps: site: redirect to anirudh.fi
Anirudh Oppiliappan x@icyphox.sh
Sun, 14 Jul 2024 00:24:44 +0300
commit

0c2075ae8c175b6c20f4f406027aa1b54b651574

parent

2f0cc63c39bec07a6cf20d52819fd58687bd7db7

1 files changed, 17 insertions(+), 4 deletions(-)

jump to
M apps/site/site.yamlapps/site/site.yaml

@@ -5,11 +5,11 @@ name: icyphox.sh

namespace: default annotations: cert-manager.io/cluster-issuer: "letsencrypt-prod" - nginx.ingress.kubernetes.io/server-snippet: | - location = /.well-known/webfinger { - return 301 https://h.icyphox.sh$request_uri; - } nginx.ingress.kubernetes.io/ssl-redirect: "true" + nginx.ingress.kubernetes.io/configuration-snippet: | + if ($request_uri !~ "^/.well-known/webfinger") { + return 301 https://anirudh.fi$request_uri; + } spec: ingressClassName: nginx tls:

@@ -20,6 +20,16 @@ rules:

- host: icyphox.sh http: paths: + - path: /.well-known/webfinger + pathType: ImplementationSpecific + backend: + service: + name: honk + port: + number: 8080 + - host: icyphox.sh + http: + paths: - path: / pathType: Prefix backend:

@@ -33,6 +43,9 @@ kind: Ingress

metadata: name: anirudh.fi namespace: default + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-prod" + nginx.ingress.kubernetes.io/ssl-redirect: "true" spec: ingressClassName: nginx tls: