apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: demo-app-ingress
  labels:
    name: demo-app-ingress
  annotations:
    cert-manager.io/cluster-issuer: "demo-app-issuer"
    nginx.ingress.kubernetes.io/cors-allow-headers: Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range
    nginx.ingress.kubernetes.io/enable-cors: "true"
    nginx.ingress.kubernetes.io/proxy-buffer-size: 128k
    nginx.ingress.kubernetes.io/proxy-buffers: 4 256k
    nginx.ingress.kubernetes.io/proxy-busy-buffers-size: 256k
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
  ingressClassName: nginx
  tls:
    - hosts:
        - demo.dev.kvazaric.ru
      secretName: kvazaric-frontend-tls
  rules:
    - host: demo.dev.kvazaric.ru
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: kvazaric-frontend-frontend
                port:
                  number: 80
