# Staging-only ingress: app serves /query and /api at document root (no /1.15/ prefix in the pod).
# REPLACE_HOST is substituted by deploy-scaleway-staging.yml (default plugin.staging.shakespeak.com).
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: sendshake-serverside-ingress
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-dns-scaleway
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
  ingressClassName: nginx
  tls:
    - hosts:
        - REPLACE_HOST
      secretName: plugin-staging-tls
  rules:
    - host: REPLACE_HOST
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: sendshake-serverside
                port:
                  number: 80
