-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent reverse proxy header configuration warning #107
Comments
Do you resolve cloud.knickrehm.net different in your internal network? We don't support mixing external connections via reverse proxy and direct connections (without reverse proxy). |
In both cases cloud.knickrehm.net is resolved in the same way. I just wondered, why I set up a reverse proxy as this installation should be set up without. Indeed, it's not using a reverse proxy and removing the But finally the
It seems, the Though I still wonder, why Nextcloud sometimes raises that warning (when working from within the Nextcloud network) and sometimes it's not raising that warning (when working from "outside"). |
cc @icewind1991 |
My I know if this is critical because if yes will not use for now the notify push, Because its only saw that warning after you install the sa notify push (HPB) Thank you |
I have the same issue on latest NC 22.2.0 if I connect to the public IP from local network (behind NAT router). My Nginx uses the reverse proxy config for notify_push as per latest documentation and I tried the trusted proxy settings, but no success. |
How to use GitHub
Steps to reproduce
trusted_proxies
using e.g.array('127.0.0.1', '::1', '<your public IP>')
Expected behaviour
The warning either appears or or does not appear, but has a consistent behaviour, independent from where I access Nextcloud.
Actual behaviour
The above mentioned warning either appears or does not appear based on my remote IP. When accessing the settings from somewhere in the network in which the Nextcloud is installed in, I see the warning. When accessing from outside (e.g. using phone network), I don't see it.
This seems to be related to the code line https://github.com/nextcloud/server/blob/0e6e80aaec387ccb91f142f61944098b05ddc817/apps/settings/lib/Controller/CheckSetupController.php#L323 and might be related to nextcloud/server#26256.
Server configuration
Operating system: Ubuntu 20.04
Web server: Apache 2
Database: MySQL
PHP version: 7.4.3
Nextcloud version: 21.0.1
Updated from an older Nextcloud/ownCloud or fresh install: Updated each major version
Where did you install Nextcloud from: Manual installation
Signing status:
Signing status
No errors have been found.
List of activated apps:
App list
Enabled:
Disabled:
Nextcloud configuration:
Config report
{
"system": {
"secret": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"enable_certificate_management": true,
"instanceid": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"cloud.knickrehm.net"
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"version": "21.0.1.1",
"dbtype": "mysql",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbname": "REMOVED SENSITIVE VALUE",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"dbtableprefix": "oc_",
"installed": true,
"default_language": "de",
"default_locale": "de",
"default_phone_region": "DE",
"overwritehost": "cloud.knickrehm.net",
"overwriteprotocol": "https",
"overwritewebroot": "/",
"overwrite.cli.url": "https://cloud.knickrehm.net",
"htaccess.RewriteBase": "/",
"enable_previews": true,
"maintenance": false,
"singleuser": false,
"memcache.distributed": "\OC\Memcache\Redis",
"memcache.local": "\OC\Memcache\APCu",
"filelocking.enabled": true,
"memcache.locking": "\OC\Memcache\Redis",
"redis": {
"host": "REMOVED SENSITIVE VALUE",
"port": 0
},
"trashbin_retention_obligation": "disabled",
"versions_retention_obligation": "disabled",
"filesystem_check_changes": 1,
"loglevel": 2,
"logfile": "/mnt/data/logs/cloud/today.log",
"mail_smtpmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_domain": "REMOVED SENSITIVE VALUE",
"mail_smtpsecure": "tls",
"mail_smtpport": "25",
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"mysql.utf8mb4": true,
"apps_paths": [
{
"path": "/knickrehm/www/cloud/apps",
"url": "/apps",
"writable": false
},
{
"path": "/knickrehm/www/cloud/apps2",
"url": "/apps2",
"writable": true
}
],
"theme": "",
"trusted_proxies": "REMOVED SENSITIVE VALUE"
}
}
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
The text was updated successfully, but these errors were encountered: