---
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