Most of these issues I came across while using Cloudflare
If having an error message for too many redirects: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/852
"The cloudflare proxy does not actually follow the redirect nginx sends, which results in this error. You probably need to set the SSL/TLS encryption mode to Full or Full (Strict) or remove the additional CloudFlare proxy."