So I wonder if you could help me , I’m running Nextcloud using podman , so rootless, as you say APACHE_DISABLE_REWRITE_IP=1
doesn’t seem to work. I can acccess nextcloud through my caddy reverse proxy no problem , however I get the error The reverse proxy header configuration is incorrect, or you are accessing Nextcloud from a trusted proxy
in the overview tab of nextcloud. I tried you solution of mounting remoteip.conf and apache2.conf I didnt have redis setup so i didn’t need the other mounted volume you show.
This is my altered line in apache2.conf
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" [%{X-Forwarded-For}i] [%{X-Real-Ip}i]" combined
and this is my altered remoteip.conf
RemoteIPHeader X-Real-Ip
RemoteIPInternalProxy 10.0.0.0/8
RemoteIPInternalProxy 172.16.0.0/12
RemoteIPInternalProxy 192.168.0.0/16
and this is the relevant part of my config.php
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.1.160',
2 => 'mynextcloud.duckdns.org',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '25.0.4.1',
'overwrite.cli.url' => 'https://mynextcloud.duckdns.org',
'default_phone_region' => 'GB',
'overwriteprotocol' => 'https',
however in my nextcloud logs I still get the container IP of my caddy reverse proxy 10.0.2.100
is there some other setting I should be changing ?
as i understand it caddy has X-Forwarded-For on by default
thanks in advance for your help