Skip to content

Too Many Redirects with nginx reverse proxy #375

Open
@flmmartins

Description

@flmmartins

I have nginx reverse proxy the following values however when I enter on pihole.mydomain.local, it redirects to /admin/login, I enter my pwd it enters in a LOOP after login saying "TOO MANY REDIRECTS". Then pihole keeps reloading forever.

Does anyone know what I am missing? I already tried multiple combinations of path, nginx annotations but nothing seems to work.

USER-SUPPLIED VALUES:
admin:
  enabled: true
  existingSecret: pihole-admin-password
  passwordKey: password
antiaff:
  avoidRelease: pihole
  enabled: true
  namespaces:
  - pihole
  strict: false
dnsmasq:
  additionalHostsEntries:
  - MY ENTRIES
  customDnsEntries:
  - address=/mydomain.local/NGINX_IP
  enableCustomDnsMasq: true
extraContainers:
- command:
  - cloudflared
  - proxy-dns
  env:
  - name: TUNNEL_DNS_UPSTREAM
    value: https://1.1.1.1/dns-query,https://1.0.0.1/dns-query
  - name: TUNNEL_DNS_PORT
    value: "5053"
  - name: TUNNEL_DNS_ADDRESS
    value: 0.0.0.0
  image: cloudflare/cloudflared:latest
  name: cloudflared
extraEnvVars:
  FTLCONF_dns_dnssec: "true"
  FTLCONF_dns_listeningMode: all
  FTLCONF_dns_upstreams: 127.0.0.1#5053
  TZ: Europe/Amsterdam
extraVolumeMounts:
  csi-secret-driver-for-admin-pwd:
    mountPath: /mnt/secrets-store
    readOnly: true
extraVolumes:
  csi-secret-driver-for-admin-pwd:
    csi:
      driver: secrets-store.csi.k8s.io
      readOnly: true
      volumeAttributes:
        secretProviderClass: pihole
ingress:
  annotations:
    cert-manager.io/common-name: pihole.mydomain.local
    kubernetes.io/tls-acme: "true"
  enabled: true
  hosts:
  - pihole.mydomain.local
  tls:
  - hosts:
    - pihole.mydomain.local
    secretName: pihole-tls
podDnsConfig:
  enabled: false
replicaCount: 2
serviceDhcp:
  enabled: false
serviceDns:
  annotations:
    metallb.universe.tf/address-pool: pihole-dns
    metallb.universe.tf/allow-shared-ip: pihole-services
  mixedService: true
  type: LoadBalancer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions