Hallo,
due to various restrictions, Iâm using NC v25 as snap on ubuntu v22 in a VM by Hyper-V on a MS server 2021. On this server 2021 host Iâm running IIS and have configured it as a reverse proxy. This way I can successfully connect to NC from my local intranet and from the internet using a Letâs encrypt certificate.
However, when I use on the ubuntu desktop for example firefox I cannot connect to NC running on exactly this machine (neither by http nor https) - thatâs my problem.
I guess my problem is either related to the network configuration chapter in my NC config.php file or due to problems of interaction between the IIS reverse proxy and NC. However, all other windows-based VMs behind the IIS reverse proxy can successfully connect to their own webservices so I basically think that the IIS reverse proxy is correctly configured.
Details:
Host/IIS reverse proxy:
DNS name: MyServer.ddnss.de
IP 1: 192.168.178.36
IP 2: 192.168.178.37
Ubuntu VM with NC
DNS name: romagna.MyServer.ddnss.de
IP: 192.168.178.79
These are the lines in my config.php file:
âmemcache.lockingâ => â\OC\Memcache\Redisâ,
âmemcache.localâ => â\OC\Memcache\Redisâ,
âredisâ =>
array (
âhostâ => â/tmp/sockets/redis.sockâ,
âportâ => 0,
),
âlog_typeâ => âfileâ,
âlogfileâ => â/var/snap/nextcloud/current/logs/nextcloud.logâ,
âlogfilemodeâ => 416,
âinstanceidâ => âocfvvd83bc9jâ,
âpasswordsaltâ => âNIL2DXukNfTitELQqCie8hl0qLMIznâ,
âsecretâ => â/aVzW3v9tu8Kg7/OPqoeOo7av71GRahPqeDPNa7yEbHq6yrpâ,
âoverwritehostâ => âromagna.MyServer.ddnss.deâ,
âoverwriteprotocolâ => âhttpsâ,
âtrusted_domainsâ =>
array (
0 => â192.168.178.79:80â,
1 => âromagna.MyServer.ddnss.deâ,
2 => âRomagna.MyServer.ddnss.deâ,
),
âtrusted_proxiesâ =>
array (
0 => â192.168.178.36â,
1 => â192.168.178.37â,
),
âdatadirectoryâ => â/var/snap/nextcloud/common/nextcloud/dataâ,
âdbtypeâ => âmysqlâ,
âversionâ => â26.0.2.1â,
âoverwrite.cli.urlâ => âhttp://192.168.178.79:80â,
âdbnameâ => ânextcloudâ,
âdbhostâ => âlocalhost:/tmp/sockets/mysql.sockâ,
âdbportâ => ââ,
âdbtableprefixâ => âoc_â,
âmysql.utf8mb4â => true,
âdbuserâ => ânextcloudâ,
âdbpasswordâ => âMJxpdxiVdwKzKubdvO5BD9SoUaMLgS5NKRFlZz4DZB97O4bEtA8tpYwLYe6vMTYVâ,
âinstalledâ => true,
âmaintenanceâ => false,
âapp_install_overwriteâ =>
array (
0 => âfolderplayerâ,
When I look as admin in âSecurity & Setup Warningsâ this message shows up:
There are some warnings with your system configuration.
The reverse proxy header configuration is incorrect or you are accessing Nextcloud through a trusted proxy. If this is not the case, then there is a security issue that allows an attacker to spy on the IP address that is visible to Nextcloud. More information about this can be found in the documentation.
Does anybody see any kind of misconfiguration that might explain my problem that I cannot connect from the ubuntu machine on its own NC instance? What do I have to do better?
Hannes