-1

i am facing a TOO_MANY_REDIRECTS error in my wordpress application. Below you can see some printscreens of my configuration:

Nginx Ingress Config

Nginx ConfigMap

php-fpm proxy_pass

enter image description here

Diego
  • 64
  • 3
  • 1
    Please copy and paste the code in your question, this makes it easy for users to try out your code by copying it in their machines. – Marc Sances Aug 19 '20 at 22:02

1 Answers1

0

Try to append to a ConfigMap a new server inside the http context using the http-snippet.

For example:

...
data:
  ssl-redirect: "false"
  hsts: "true"
  server-tokens: "false"
  http-snippet: |
    server {
      listen 8000 proxy_protocol;
      server_tokens off;
      return 301 https://$host$request_uri;
    }

This will prevent overriding the original nginx.tmpl, ensuring more compatibility in case of upgrade the Nginx Ingress version.

Please take a look: ingress-too-many-redirects, too-many-redirects-with-reverse-proxy.

Useful article: too-many-redirects-wp

Malgorzata
  • 6,409
  • 1
  • 10
  • 27