apps/garage/resources/web_routes.yaml
Peter Kurfer 8aca758f76
All checks were successful
Renovate / renovate (push) Successful in 45s
feat(garage): deploy route for git-age docs
2024-05-22 21:16:32 +02:00

59 lines
No EOL
1.1 KiB
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"
- "docs.git-age.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
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: garage-git-age-docs-https
spec:
parentRefs:
- name: contour
sectionName: git-age-docs
namespace: projectcontour
hostnames:
- "docs.git-age.icb4dc0.de"
rules:
- filters:
- type: URLRewrite
urlRewrite:
hostname: git-age-docs.icb4dc0.de
backendRefs:
- name: garage
port: 3902