• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How to set/provide X-Forwarded-* headers in Haproxy

Scheduled Pinned Locked Moved Cache/Proxy
1 Posts 1 Posters 331 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    notgato
    last edited by notgato Sep 28, 2021, 11:04 PM Sep 28, 2021, 10:57 PM

    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:

    Screen Shot 2021-09-28 at 22.41.00.png

    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.

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received