Haproxy pfsense and nextcloud

Hello everyone, I use nextcloud and in the summary information the following inscription appears:

The reverse proxy header configuration is incorrect

I think this is an error regarding HTTP “X-Forwarded-For” . I’ve tried different configurations by reading a little on the forums, but nothing to do.

Has anyone solved it?

Is your nextcloud web server is configure to understand X-Forwarded-For ?
Can real client user is readable in web server logs ?

Hi Deux, I forgot to write that I solved it after days. In the trusted proxies , I added the name fqdn of haproxy and from that moment on I have no more errors . Thank you anyway for your intervention.

 'trusted_proxies' => 
  array (
    0 => '',
    1 => '',
    2 => '',
    3 => 'localhost',
    4 => '::1',
    5 => 'myhaproxy.fqdn',
  'forwarded_for_headers' => 
  array (

1 Like

Remember to mark your solution as it.

1 Like