Problem: Cannot load Foreman, ERR_TOO_MANY_REDIRECTS
Expected outcome: Foreman to load correctly
Foreman and Proxy versions: 3.1.0
Foreman and Proxy plugin versions: 3.1.0
Distribution and version: Oracle Linux 8
Other relevant data:
I’m running foreman in a container behind a network load balancer (puppetserver, r10k and foreman-proxy are also conainerised). The TLS is terminated at the load balancer and foreman is listening on HTTP/3000 with nothing else in the way (no apache/nginx etc.). The issue I’m facing is that I’m unable to load foreman as it keeps redirecting me:
$ curl https://foreman.my.domain/ <html><body>You are being <a href="https://foreman.my.domain/">redirected</a>.</body></html> $ curl https://foreman.my.domain/users/login <html><body>You are being <a href="https://foreman.my.domain/users/login">redirected</a>.</body></html> $ curl -L https://foreman.my.domain curl: (47) Maximum (50) redirects followed
2022-01-28 10:43:018.104.22.168 - - [28/Jan/2022:10:43:02 UTC] "GET /users/login HTTP/1.1" 301 99 2022-01-28 10:43:02- -> /users/login
Is there a setting I need to change to stop this behaviour? Or if someone can link me to the part of the code that does the redirect I can do some digging.
Any help appreciated!