feat(digital-garden): Added digital garden deployment
Some checks failed
Validate K8s manifests / validate-manifests (push) Has been cancelled
Some checks failed
Validate K8s manifests / validate-manifests (push) Has been cancelled
This commit is contained in:
@@ -8,12 +8,19 @@ spec:
|
|||||||
- websecure
|
- websecure
|
||||||
routes:
|
routes:
|
||||||
- kind: Rule
|
- kind: Rule
|
||||||
match: Host(`groothuis.io`) || Host(`danielgroothuis.com`) || Host(`www.danielgroothuis.com`)
|
match: Host(`groothuis.io`)
|
||||||
middlewares:
|
middlewares:
|
||||||
- name: redirect-to-www
|
- name: redirect-to-www
|
||||||
services:
|
services:
|
||||||
- kind: TraefikService
|
- kind: TraefikService
|
||||||
name: noop@internal
|
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
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: Middleware
|
kind: Middleware
|
||||||
@@ -24,3 +31,13 @@ spec:
|
|||||||
permanent: true
|
permanent: true
|
||||||
regex: "^https?://(?:www\\.)?(.+)"
|
regex: "^https?://(?:www\\.)?(.+)"
|
||||||
replacement: "https://www.${1}"
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user