http redirect to https
This commit is contained in:
parent
d74233713d
commit
d803e75e71
|
@ -4,7 +4,7 @@ resources:
|
||||||
- ./nocodelytics-events-worker.yaml
|
- ./nocodelytics-events-worker.yaml
|
||||||
- ./nocodelytics-tracker-api.yaml
|
- ./nocodelytics-tracker-api.yaml
|
||||||
- ./cert-manager.yaml
|
- ./cert-manager.yaml
|
||||||
|
- ./traefik.yaml
|
||||||
secretGenerator:
|
secretGenerator:
|
||||||
- name: regcred
|
- name: regcred
|
||||||
type: kubernetes.io/dockerconfigjson
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
|
|
@ -107,13 +107,6 @@ spec:
|
||||||
- host: default.nocodelytics.com
|
- host: default.nocodelytics.com
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: ssl-redirect
|
|
||||||
port:
|
|
||||||
name: use-annotation
|
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: https-redirect
|
||||||
|
spec:
|
||||||
|
redirectScheme:
|
||||||
|
scheme: https
|
||||||
|
permanent: true
|
|
@ -11,6 +11,8 @@ apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: nocodelytics-dashboard-nginx-ingress
|
name: nocodelytics-dashboard-nginx-ingress
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.middlewares: production-https-redirect@kubernetescrd
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: api.nocodelytics.com
|
- host: api.nocodelytics.com
|
||||||
|
|
|
@ -11,18 +11,13 @@ apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: nocodelytics-dashboard-nginx-ingress
|
name: nocodelytics-dashboard-nginx-ingress
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.middlewares: staging-https-redirect@kubernetescrd
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: staging.nocodelytics.com
|
- host: staging.nocodelytics.com
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: ssl-redirect
|
|
||||||
port:
|
|
||||||
name: use-annotation
|
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
|
|
Loading…
Reference in New Issue