Nextcloud version (eg, 20.0.5): 20.0.4.1
Operating system and version (eg, Ubuntu 20.04): TrueNas 13U2
Apache or nginx version (eg, Apache 2.4.25): Caddy v2.4.6
PHP version (eg, 7.4): PHP 8.0.20
The issue you are facing:
The reverse proxy header configuration is incorrect, or you are accessing Nextcloud from a trusted proxy. From the Security & setup warnings page. Prior to reinstall I had the green check mark.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- I have a caddy reverse proxy in a truenas jail which is unchanged.
- Deleted the nextcloud jail that uses the reverse proxy and reinstalled it.
- Restored the previous data with a backup
- Reset the admin password.
- Everything is work but I’m getting the Reverse Proxy error
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => '1gYQWugZz+k5Fi***********',
'secret' => 'jzoxSWV9rGEdg3/y26m*************',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'cloud.mydomain.com',
2 => '192.168.5.81',
),
'datadirectory' => '/mnt/files',
'dbtype' => 'mysql',
'version' => '24.0.4.1',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/tmp/mysql.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'XOZz**************',
'installed' => true,
'instanceid' => 'oc**********',
'logtimezone' => 'America/New_York',
'log_type' => 'file',
'logfile' => '/var/log/nextcloud.log',
'loglevel' => '2',
'logrotate_size' => '104847600',
'memcache.local' => '\\OC\\Memcache\\APCu',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'htaccess.RewriteBase' => '/',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpsecure' => 'ssl',
'mail_from_address' => 'email',
'mail_domain' => 'gmail.com',
'mail_smtpauth' => '1',
'mail_smtpport' => '465',
'mail_smtpname' => 'email',
'mail_smtppassword' => 'email pw',
'mail_smtphost' => 'smtp.gmail.com',
'maintenance' => false,
'overwriteprotocol' => 'https',
'overwritehost' => 'cloud.mydomain.com',
'default_phone_region' => 'US',
'overwrite.cli.url' => 'https://cloud.mydomain.com',
'theme' => '',
'data-fingerprint' => '2616c*******************',
);