feat(digital-garden): Added digital garden deployment
Some checks failed
Validate K8s manifests / validate-manifests (push) Has been cancelled

This commit is contained in:
Daniël Groothuis
2025-10-31 17:15:00 +01:00
parent 146f0aba8b
commit 2b52a58b7a

View File

@@ -8,12 +8,19 @@ spec:
- websecure
routes:
- kind: Rule
match: Host(`groothuis.io`) || Host(`danielgroothuis.com`) || Host(`www.danielgroothuis.com`)
match: Host(`groothuis.io`)
middlewares:
- name: redirect-to-www
services:
- kind: TraefikService
name: noop@internal
- kind: Rule
match: Host(`danielgroothuis.com`) || Host(`www.danielgroothuis.com`)
middlewares:
- name: redirect-to-groothuis-io
services:
- kind: TraefikService
name: noop@internal
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
@@ -24,3 +31,13 @@ spec:
permanent: true
regex: "^https?://(?:www\\.)?(.+)"
replacement: "https://www.${1}"
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: redirect-to-groothuis-io
spec:
redirectRegex:
permanent: true
regex: "^https?://(?:www\\.)?(.+)"
replacement: "https://www.groothuis.io"