apps/garage/resources/web_routes.yaml
Peter Kurfer a9df520f9c
All checks were successful
Renovate / renovate (push) Successful in 23s
feat(garage): configure blog routes
2024-05-07 18:28:39 +02:00

38 lines
No EOL
715 B
YAML

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: garage-web-http
spec:
parentRefs:
- name: contour
sectionName: http
namespace: projectcontour
hostnames:
- "www.icb4dc0.de"
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: garage-blog-https
spec:
parentRefs:
- name: contour
sectionName: https
namespace: projectcontour
hostnames:
- "www.icb4dc0.de"
rules:
- filters:
- type: URLRewrite
urlRewrite:
hostname: blog.icb4dc0.de
backendRefs:
- name: garage
port: 3902