apps/garage/resources/web_routes.yaml

38 lines
715 B
YAML
Raw Normal View History

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