New way to redirect 80 to 443
This commit is contained in:
parent
2b6bc3c2c4
commit
aa7d1e668e
1 changed files with 11 additions and 2 deletions
|
@ -116,15 +116,24 @@ metadata:
|
||||||
annotations:
|
annotations:
|
||||||
replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net
|
replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net
|
||||||
---
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: redirect-to-https
|
||||||
|
namespace: nextcloud
|
||||||
|
spec:
|
||||||
|
redirectScheme:
|
||||||
|
scheme: https
|
||||||
|
permanent: true
|
||||||
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud
|
name: nextcloud
|
||||||
namespace: nextcloud
|
namespace: nextcloud
|
||||||
annotations:
|
annotations:
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
|
|
||||||
traefik.ingress.kubernetes.io/redirect-entry-point: websecure
|
|
||||||
external-dns.alpha.kubernetes.io/hostname: nc.hxme.net
|
external-dns.alpha.kubernetes.io/hostname: nc.hxme.net
|
||||||
|
traefik.ingress.kubernetes.io/router.middlewares: nextcloud-redirect-to-https@kubernetescrd
|
||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue