🐛 Redirect http to https for the frontend of carrramba service
This commit is contained in:
@@ -63,9 +63,11 @@ metadata:
|
|||||||
name: carrramba-encore-rate-frontend-ingress
|
name: carrramba-encore-rate-frontend-ingress
|
||||||
annotations:
|
annotations:
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: web
|
traefik.ingress.kubernetes.io/router.entrypoints: web
|
||||||
|
traefik.ingress.kubernetes.io/router.middlewares: default-websecure-redirect@kubernetescrd
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- http:
|
- host: carrramba.adrien.run
|
||||||
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
@@ -75,6 +77,32 @@ spec:
|
|||||||
port:
|
port:
|
||||||
name: web
|
name: web
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: carrramba-encore-rate-websecure-ingress
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-carrramba
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- carrramba.adrien.run
|
||||||
|
secretName: tls-carrramba-encore-rate-ingress
|
||||||
|
rules:
|
||||||
|
- host: carrramba.adrien.run
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: carrramba-encore-rate-frontend
|
||||||
|
port:
|
||||||
|
name: web
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
kind: Middleware
|
kind: Middleware
|
||||||
@@ -100,7 +128,8 @@ spec:
|
|||||||
- carrramba.adrien.run
|
- carrramba.adrien.run
|
||||||
secretName: tls-carrramba-encore-rate-ingress
|
secretName: tls-carrramba-encore-rate-ingress
|
||||||
rules:
|
rules:
|
||||||
- http:
|
- host: carrramba.adrien.run
|
||||||
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /api/
|
- path: /api/
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
Reference in New Issue
Block a user