How to set/provide X-Forwarded-* headers in Haproxy
-
Hi all,
In order to properly run behind haproxy an app/server I just installed/configured in a container inside proxmox (Kimai 2 for more details), I need to provide "all necessary X-Forwarded-* headers", the developer documentation says. In the documentation, an example with nginx is provided, see here and below:
Could you please help me understand how I do this in haproxy (running inside pfsense)?
What I have tried so far is to check the box "Use "forwardfor" option" under "advanced settings" in my frontend but this did not fix it.
I guess there is something I need to do inside my kimai backend...
The problem I am having accessing the app/kimai is that when I enter the https address, the browser redirects to the http one and the query ends up timing out. If I click again, adding https before the url, it then works and I end up loggin in. However, the same happens again if I logout, the query ends up timing out.
Thanks a lot in advance for any suggestions.