From 4a5f62d17a1727eedfd735a7deaf861e95ee0853 Mon Sep 17 00:00:00 2001 From: Scrublord MacBad Date: Wed, 22 Apr 2026 15:11:58 +0200 Subject: [PATCH] fix ingress --- apps/production/apex-ingress.yaml | 37 +++++++++++++++++++ .../production/custom-configs/mas-secret.yaml | 1 + apps/production/element-server-suite.yaml | 6 +-- 3 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 apps/production/apex-ingress.yaml diff --git a/apps/production/apex-ingress.yaml b/apps/production/apex-ingress.yaml new file mode 100644 index 0000000..cf02d90 --- /dev/null +++ b/apps/production/apex-ingress.yaml @@ -0,0 +1,37 @@ +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: axion-apex-tls + namespace: matrix +spec: + secretName: axion-apex-tls + issuerRef: + name: letsencrypt-prod + kind: ClusterIssuer + dnsNames: + - axion1337.chat +--- +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: axion-apex + namespace: matrix +spec: + entryPoints: [websecure] + tls: + secretName: axion-apex-tls + routes: + # Höchste Priorität: /.well-known/matrix/* -> wellKnownDelegation-Service + - match: Host(`axion1337.chat`) && PathPrefix(`/.well-known/matrix`) + kind: Rule + priority: 100 + services: + - name: matrix-stack-well-known-delegation + port: 8080 + # Niedrigere Priorität: alles andere -> Element Web + - match: Host(`axion1337.chat`) + kind: Rule + priority: 10 + services: + - name: matrix-stack-element-web + port: 8080 \ No newline at end of file diff --git a/apps/production/custom-configs/mas-secret.yaml b/apps/production/custom-configs/mas-secret.yaml index 33273b7..5c6cb27 100644 --- a/apps/production/custom-configs/mas-secret.yaml +++ b/apps/production/custom-configs/mas-secret.yaml @@ -10,6 +10,7 @@ stringData: smtp-config: config: | email: + mode: enabled from: gamemaster@axion1337.chat transport: smtp smtp: diff --git a/apps/production/element-server-suite.yaml b/apps/production/element-server-suite.yaml index cdda3cd..04793e4 100644 --- a/apps/production/element-server-suite.yaml +++ b/apps/production/element-server-suite.yaml @@ -60,7 +60,7 @@ spec: elementWeb: enabled: true ingress: - host: chat.axion1337.chat + host: axion1337.chat # Element Admin elementAdmin: @@ -72,5 +72,5 @@ spec: # Aktiviert – notwendig für MatrixRTC-Discovery wellKnownDelegation: enabled: true - baseDomainRedirect: - url: https://chat.axion1337.chat \ No newline at end of file + ingress: + className: "none" # Deaktiviert den Chart-Ingress, wir erstellen einen eigenen \ No newline at end of file