change to regex-type ingress (haproxy-specific)

This commit is contained in:
James Andariese 2025-04-11 14:40:25 -05:00
parent 3225fdb7d6
commit 6f80f4fece

View File

@ -2,6 +2,8 @@
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
annotations:
haproxy-ingress.github.io/path-type: regex
name: direct-hosted-sites name: direct-hosted-sites
namespace: garage namespace: garage
spec: spec:
@ -10,18 +12,8 @@ spec:
- host: 'strudelline.net' - host: 'strudelline.net'
http: http:
paths: paths:
- path: / - path: /([^/]+.html)?$
pathType: Exact pathType: ImplementationSpecific
backend:
service:
name: garage
port:
name: s3-web
- host: 'strudelline.net'
http:
paths:
- path: /index.html
pathType: Exact
backend: backend:
service: service:
name: garage name: garage