Problem to many redirect Kubernets + ingress + nginx

I’m with problem with to many redirects in nginx

Here my yaml

apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv-mizuconecta
spec:
  capacity:
    storage: 10Gi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: /mnt/data/mizuconecta
  persistentVolumeReclaimPolicy: Retain
  storageClassName: standard

---

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pvc-mizuconecta
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 10Gi
  storageClassName: standard

---

apiVersion: apps/v1
kind: Deployment
metadata:
  name: php-fpm-deployment
spec:
  replicas: 2
  selector:
    matchLabels:
      app: php-fpm
  template:
    metadata:
      labels:
        app: php-fpm
    spec:
      containers:
      - name: php-fpm
        image: php:fpm-alpine
        ports:
        - containerPort: 9000
        volumeMounts:
        - mountPath: /var/www/html
          name: php-storage
        resources:
          limits:
            memory: "2Gi"
            cpu: "2"
          requests:
            memory: "2Gi"
            cpu: "1"
        env:
        - name: PHP_MEMORY_LIMIT
          value: "2G"
        - name: PHP_MAX_EXECUTION_TIME
          value: "900"
        - name: PHP_MAX_INPUT_TIME
          value: "900"
        - name: PHP_POST_MAX_SIZE
          value: "200M"
        - name: PHP_UPLOAD_MAX_FILESIZE
          value: "200M"
        - name: PHP_MAX_FILE_UPLOADS
          value: "20"
        - name: PHP_OPCACHE_MEMORY_CONSUMPTION
          value: "128"
      volumes:
      - name: php-storage
        persistentVolumeClaim:
          claimName: pvc-mizuconecta

---

apiVersion: v1
kind: Service
metadata:
  name: php-fpm-service
spec:
  selector:
    app: php-fpm
  ports:
    - protocol: TCP
      port: 9000
      targetPort: 9000
      name: php

---

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: nginx-ingress
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: "200m"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "900"
    nginx.ingress.kubernetes.io/proxy-read-timeout: "900"
    nginx.ingress.kubernetes.io/force-ssl-redirect: "false" # Desativar redirecionamento forçado
    nginx.ingress.kubernetes.io/ssl-redirect: "false" # Desativar redirecionamento SSL
spec:
  tls:
  - hosts:
    - mizuconecta.mizu.com.br
    secretName: tls-mizu
  rules:
  - host: mizuconecta.mizu.com.br
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: nginx-service
            port:
              number: 80


---

apiVersion: v1
kind: Service
metadata:
  name: nginx-service
spec:
  selector:
    app: nginx
  ports:
    - protocol: TCP
      port: 443
      targetPort: 443
      name: https
    - protocol: TCP
      port: 80
      targetPort: 80
      name: http

---

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  replicas: 2
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:latest
        ports:
        - containerPort: 443
        - containerPort: 80
        volumeMounts:
        - mountPath: /var/www/html/
          name: nginx-storage
        - mountPath: /etc/nginx/conf.d
          name: nginx-config
        - mountPath: /etc/nginx/ssl
          name: nginx-ssl
      volumes:
      - name: nginx-storage
        persistentVolumeClaim:
          claimName: pvc-mizuconecta
      - name: nginx-config
        configMap:
          name: nginx-config
      - name: nginx-ssl
        secret:
          secretName: tls-mizu

---

apiVersion: v1
kind: ConfigMap
metadata:
  name: nginx-config
data:
  default.conf: |
    server {
        listen 80;
        server_name dominio.com
        
        location / {
            return 301 https://$host$request_uri; # Redirecionar HTTP para HTTPS
        }
    }

    server {
        listen 443 ssl;
        server_name dominio.com;

        ssl_certificate /etc/nginx/ssl/tls.crt;
        ssl_certificate_key /etc/nginx/ssl/tls.key;

        root /var/www/html;
        index index.php index.html;

        keepalive_timeout 900;
        client_header_timeout 900;
        client_body_timeout 900;
        reset_timedout_connection on;
        send_timeout 900;
        fastcgi_buffers 8 128k;
        fastcgi_buffer_size 128k;
        client_max_body_size 200m;

        location / {
            try_files $uri $uri/ /index.php?$query_string;
        }

        location ~ .php$ {
            include fastcgi_params;
            fastcgi_pass php-fpm-service:9000;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param PATH_INFO $fastcgi_script_name;
        }

        location ~ /.ht {
            deny all;
        }
    }


here logs

root@srv-dcay01:/home/triplex/axcel/camunda/nginx/novo# kubectl logs -l app.kubernetes.io/name=ingress-nginx -n ingress-nginx
W0605 13:40:45.294575 1 client_config.go:618] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
{“err”:”secrets “ingress-nginx-admission” not found”,”level”:”info”,”msg”:”no secret found”,”source”:”k8s/k8s.go:229″,”time”:”2024-06-05T13:40:45Z”}
{“level”:”info”,”msg”:”creating new secret”,”source”:”cmd/create.go:28″,”time”:”2024-06-05T13:40:45Z”}
W0605 13:40:47.003989 1 client_config.go:618] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
{“level”:”info”,”msg”:”patching webhook configurations ‘ingress-nginx-admission’ mutating=false, validating=true, failurePolicy=Fail”,”source”:”k8s/k8s.go:118″,”time”:”2024-06-05T13:40:47Z”}
{“level”:”info”,”msg”:”Patched hook(s)”,”source”:”k8s/k8s.go:138″,”time”:”2024-06-05T13:40:47Z”}
177.91.216.253 – – [05/Jun/2024:17:31:15 +0000] “GET / HTTP/2.0” 301 169 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0” 25 0.001 [default-nginx-service-80] [] 10.244.0.72:80 169 0.000 301 6da273aec3981569189b28d0c6fcdca1
177.91.216.253 – – [05/Jun/2024:17:31:15 +0000] “GET / HTTP/2.0” 301 169 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0” 25 0.000 [default-nginx-service-80] [] 10.244.0.73:80 169 0.001 301 d2ea029c296d20e14c8c0e0d33df38bd
177.91.216.253 – – [05/Jun/2024:17:31:15 +0000] “GET / HTTP/2.0” 301 169 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0” 25 0.001 [default-nginx-service-80] [] 10.244.0.72:80 169 0.000 301 a710973ce9605404331cd90809e8ac8e
177.91.216.253 – – [05/Jun/2024:17:31:15 +0000] “GET / HTTP/2.0” 301 169 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0” 25 0.001 [default-nginx-service-80] [] 10.244.0.73:80 169 0.000 301 d93c46f009661489e90fa49dd725c4b5
177.91.216.253 – – [05/Jun/2024:17:31:15 +0000] “GET / HTTP/2.0” 301 169 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0” 25 0.000 [default-nginx-service-80] [] 10.244.0.72:80 169 0.001 301 ad478864c45f1ce80ef1ccbdb2488bac
177.91.216.253 – – [05/Jun/2024:17:31:15 +0000] “GET / HTTP/2.0” 301 169 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0” 25 0.000 [default-nginx-service-80] [] 10.244.0.73:80 169 0.001 301 679677a9b59e8af63f849dad3c9e30c8
177.91.216.253 – – [05/Jun/2024:17:31:15 +0000] “GET / HTTP/2.0” 301 169 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0” 25 0.001 [default-nginx-service-80] [] 10.244.0.72:80 169 0.000 301 497c168e753c701b3b05eabba9d98840
177.91.216.253 – – [05/Jun/2024:17:31:15 +0000] “GET / HTTP/2.0” 301 169 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0” 25 0.001 [default-nginx-service-80] [] 10.244.0.73:80 169 0.000 301 d37e2cf2669d0d5abe2aeed5dc022547
177.91.216.253 – – [05/Jun/2024:17:31:15 +0000] “GET / HTTP/2.0” 301 169 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0” 25 0.001 [default-nginx-service-80] [] 10.244.0.72:80 169 0.000 301 062146bc5b1af98799122eb99712837c
177.91.216.253 – – [05/Jun/2024:17:31:15 +0000] “GET / HTTP/2.0” 301 169 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0” 25 0.001 [default-nginx-service-80] [] 10.244.0.73:80 169 0.000 301 627f7c25260b729b52fa24d726fac688
root@srv-dcay01:/home/triplex/axcel/camunda/nginx/novo# ^C

I’ve already tried changing the configmap and ingress settings but either it shows that I’m using http over https or it gives to many redirects

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật