ntwl/spacerace/spacerace.ingress.yaml
2025-04-12 22:20:42 +10:00

27 lines
582 B
YAML

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: spacerace-api
namespace: spacerace
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
haproxy.org/path-rewrite: "/api(/)?(.*) /$2"
spec:
ingressClassName: haproxy
tls:
- hosts:
- spacerace.ntwl.xyz
secretName: spacerace-ntwl-xyz-tls
rules:
- host: spacerace.ntwl.xyz
http:
paths:
- path: /api(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: spacerace-api
port:
number: 80