Skip to content

Commit 69e5458

Browse files
committed
feat(#111): add http to https redirection
1 parent 2f069f0 commit 69e5458

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

infra/templates/traefik.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# First add CRDs with https://raw.githubusercontent.com/traefik/traefik/v2.9/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml
2+
apiVersion: traefik.containo.us/v1alpha1
3+
kind: Middleware
4+
metadata:
5+
name: redirecthttps # middleware name
6+
namespace: kube-system # <- replace with the namespace où tourne Traefik
7+
spec:
8+
redirectScheme:
9+
scheme: https # target scheme
10+
permanent: true

0 commit comments

Comments
 (0)