danb35 / freenas-iocage-nextcloud

Script to create an iocage jail on FreeNAS for the latest Nextcloud 28 release, including Caddy, MariaDB or PostgreSQL, and Let's Encrypt
GNU General Public License v3.0
250 stars 71 forks source link

"Reverse proxy header configuration is incorrect" message in admin overview #189

Closed danb35 closed 10 months ago

danb35 commented 2 years ago

See: https://help.nextcloud.com/t/the-reverse-proxy-header-configuration-is-incorrect-or-you-are-accessing-nextcloud-from-a-trusted-proxy/139286

RedrootDEV commented 1 year ago

same problem here

danb35 commented 1 year ago

This is an upstream problem that nobody at Nextcloud seems to be interested in looking into.

RedrootDEV commented 1 year ago

if I write anything (like asdasdasdasdasd) in "trusted_proxy" the error disappears, however that does not give me peace of mind, what do you think? should i not use caddy as webserver (with nextcloud)?

NasKar2 commented 1 year ago

I added these lines to my config.php and it fixed the error. 192.168.5.81 is my caddy reverse proxy jail IP 'trusted_proxies' => array ( 0 => '192.168.5.81', 1 => 'localhost', 2 => 'cloud.mydomain.com', 3 => '::1', ),