---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: gateway-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$1
    # Enable WebSocket support
    nginx.ingress.kubernetes.io/websocket-services: gateway
    nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
spec:
  ingressClassName: nginx
  # Remove TLS for dev
  tls: []
  rules:
  - host: dexorder.local
    http:
      paths:
      # Gateway API routes - strip /api prefix
      - path: /api/(.*)
        pathType: ImplementationSpecific
        backend:
          service:
            name: gateway
            port:
              number: 3000
