From 8951deadb18b7d7c9730f3c88538a350e87eff9c Mon Sep 17 00:00:00 2001 From: "ryan-distrust.co" Date: Thu, 8 Aug 2024 21:18:20 -0400 Subject: [PATCH] k/website: commit matrix changes, add docs --- kustomizations/website/docs.yaml | 32 ++++++++++++++++++++++ kustomizations/website/files/matrix/client | 2 +- kustomizations/website/files/matrix/server | 2 +- kustomizations/website/ingress.yaml | 26 ++++++++++++++++++ kustomizations/website/kustomization.yaml | 1 + 5 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 kustomizations/website/docs.yaml diff --git a/kustomizations/website/docs.yaml b/kustomizations/website/docs.yaml new file mode 100644 index 0000000..f0dc36a --- /dev/null +++ b/kustomizations/website/docs.yaml @@ -0,0 +1,32 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: docs +spec: + replicas: 2 + selector: + matchLabels: + app: docs + template: + metadata: + labels: + app: docs + spec: + containers: + - name: docs + image: git.distrust.co/public/docs + imagePullPolicy: Always + ports: + - containerPort: 8080 +--- +apiVersion: v1 +kind: Service +metadata: + name: docs +spec: + ports: + - name: http + port: 80 + targetPort: 8080 + selector: + app: docs diff --git a/kustomizations/website/files/matrix/client b/kustomizations/website/files/matrix/client index f2ee293..feff107 100644 --- a/kustomizations/website/files/matrix/client +++ b/kustomizations/website/files/matrix/client @@ -1,6 +1,6 @@ { "m.homeserver": { - "base_url": "https://distrust.ems.host" + "base_url": "https://matrix.distrust.co" }, "m.identity_server": { "base_url": "https://vector.im" diff --git a/kustomizations/website/files/matrix/server b/kustomizations/website/files/matrix/server index f81721e..c1daa55 100644 --- a/kustomizations/website/files/matrix/server +++ b/kustomizations/website/files/matrix/server @@ -1,3 +1,3 @@ { - "m.server": "distrust.ems.host:443" + "m.server": "matrix.distrust.co:443" } diff --git a/kustomizations/website/ingress.yaml b/kustomizations/website/ingress.yaml index 3556e8e..19f3852 100644 --- a/kustomizations/website/ingress.yaml +++ b/kustomizations/website/ingress.yaml @@ -37,3 +37,29 @@ spec: - hosts: - distrust.co secretName: website-tls +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: docs + annotations: + cert-manager.io/cluster-issuer: letsencrypt + external-dns.alpha.kubernetes.io/hostname: docs.distrust.co + nginx.ingress.kubernetes.io/enable-cors: "true" +spec: + ingressClassName: nginx + rules: + - host: docs.distrust.co + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: docs + port: + number: 80 + tls: + - hosts: + - docs.distrust.co + secretName: docs-tls diff --git a/kustomizations/website/kustomization.yaml b/kustomizations/website/kustomization.yaml index 47f3c61..6d3fdbd 100644 --- a/kustomizations/website/kustomization.yaml +++ b/kustomizations/website/kustomization.yaml @@ -5,6 +5,7 @@ resources: - namespace.yaml - ingress.yaml - website.yaml +- docs.yaml - wellknown.yaml configMapGenerator: - name: openpgp-keys