Reverse proxy header configuration warning

Hi there

Since good solutions have always been suggested here, I’ll try it again today.

I have set up a reverse proxy with Apache Nextcloud

I have the following error message

The reverse proxy header configuration is incorrect or accesses Nextcloud through a trusted proxy. The is not the fall, then it’s a safety problem, also the attacker allowed the IP address, the for nextcloud visible is to hide. Further information can be found in the documentation.

What do they mean and how do I fix this error

Reverse Proxy and Nextcloud Server are two different PCs and are installed on the Reverse Proxy.

Nextcloud server

NC: 18.0

apache2

PHP7.2

greeting

Martin

apparently something went wrong. have you checked the documentation about what they suggest and compared it to your setup/environment?

I have now found a solution.

Solution:

‘trusted_proxies’ => ‘192.168.178’, (IP des Proxys)

‘overwriteprotocol’ => ‘https’, (Auswahl zwischen http und https)

‘overwritewebroot’ => ‘/nextcloud’, (Wo liegt nextcloud)

The lines of code were written in the config.php

The better Solution for me should be configure proxy setting, My routing should be like this
Nginx Proxy manager(Docker IP:172.17.0.4) >> CWP(Hosting panel IP:192.168.1.100) >> Vhost(nextcloud.domain.com)

Here What I did was config the nginx.conf
nano /etc/nginx/nginx.conf

set_real_ip_from 172.17.0.0/16;

it’s also working you add this configuration to your vhost.

####below solution will generate visitor log all from the proxy IP####
####nano /wwwroot/nextcloud.domain.com/confi/config.php####
‘trusted_proxies’ =>
array (
0 => ‘172.17.0.4’, ###this could be Nginx Proxy Manager IP or router ip##
),
‘overwriteprotocol’ => ‘https’,
####above solution will generate visitor log all from the proxy IP####