chore(traefik): ssl redirect

This commit is contained in:
Rob Watson 2025-04-27 21:54:08 +02:00
parent e6506a70da
commit bd8ffd130b
4 changed files with 13 additions and 1 deletions

View File

@ -2,6 +2,8 @@ apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: ingress name: ingress
annotations:
traefik.ingress.kubernetes.io/router.middlewares: default-prod-redirect-ssl@kubernetescrd
spec: spec:
rules: rules:

View File

@ -34,7 +34,8 @@ resources:
- statefulset-gitea.yaml - statefulset-gitea.yaml
- svc-gitea.yaml - svc-gitea.yaml
- ingress-route-gitea-ssh.yaml - traefik-ingress-route-gitea-ssh.yaml
- traefik-middleware-ssl-redirect.yaml
- statefulset-radicale.yaml - statefulset-radicale.yaml
- svc-radicale.yaml - svc-radicale.yaml

View File

@ -0,0 +1,9 @@
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: redirect-ssl
spec:
redirectScheme:
scheme: https
permanent: true