Hey! Thanks in advance for taking the time!
I currently face the problem of the Desktop Client showing the following error when trying to login:
The Polling URL does not start with HTTPS despite the login URL started with HTTPS. Login will not be possible because this might be a security issue. Please contact your administrator.
My setup is Nextcloud inside a Docker inside a Docker Network with all my Applications running. The Http/Https requests are handled by a Caddy instance and reverse proxies are configured in a Caddyfile which looks like this:
freepbx.staffconnect.agency {
reverse_proxy host.docker.internal:50000
}
docuseal.staffconnect.agency {
reverse_proxy app:3000
}
traggo.staffconnect.agency {
reverse_proxy docuseal_traggo_1:3030
}
nextcloud.staffconnect.agency {
reverse_proxy docuseal_nextcloud_1:80 {
header_up Host {host}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Port {server_port}
header_up X-Forwarded-Proto {scheme}
}
header Strict-Transport-Security "max-age=31536000;"
redir /.well-known/carddav /remote.php/dav 301
redir /.well-known/caldav /remote.php/dav 301
}
collabora.staffconnect.agency {
reverse_proxy collabora_code:9980 {
header_up Host {host}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
}
}
Im guessing its some line in the config.php I would need to change so here is the config.php:
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'upgrade.disable-web' => true,
'instanceid' => <redacted>,
'passwordsalt' => <redacted>,
'secret' => <redacted>,
'trusted_domains' =>
array (
0 => 'nextcloud.staffconnect.agency',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '28.0.3.2',
'overwrite.cli.url' => 'http://172.18.0.7',
'dbname' => <redacted>,
'dbhost' => <redacted>,
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => <redacted>,
'dbpassword' => <redacted>,
'installed' => true,
'overwritehost' => 'nextcloud.staffconnect.agency',
'overwriteprotocol' => 'https',
'overwritewebroot' => '/',
'overwritecondaddr' => '^172.18.0.5$',
'trusted_proxies' =>
array (
0 => '172.18.0.5',
),
'maintenance_window' =>
array (
'day' => 'Sunday',
'time' => '02:00:00',
'duration' => 60,
),
'maintenance' => false,
);
I already tried looking for a solution in other threads but they didnt seem to work for me. Another alarming thing is, when I Open the Administrator Settings in Nextcloud it shows the following warnings:
- βYou are accessing your instance over a secure connection, but your instance is generating insecure URLs. This most likely means that you are behind a reverse proxy and the configuration variables for overriding are not properly set. Please refer to the documentation here .β
- βThe server does not have a configured start time for the maintenance window. This means that resource-intensive daily background tasks may also run during your peak usage time. We recommend setting the maintenance window to a time of low usage to minimize the impact of these extensive tasks on users. Further information can be found in the documentation .β
- βThe database is being used for transactional file locking. To improve performance, please configure Memcache if available. Further information can be found in the documentation .β
When I look at my config.php it looks like I configured memcache and start time but nextcloud does not seem to acknowledge those settings. The config.php is mounted in the docker-compose like this:
(...)
nextcloud:
image: nextcloud:latest
volumes:
- nextcloud_data:/var/www/html
- ./config.php:/var/www/html/config/config.php
(...)
Thanks in advance for any help! been trying to figure this out for some time now^^ !