Nextcloud version 21.0.0
Operating system and version _ubuntu 18.04
Apache or nginx version nginx/1.21.1
PHP version 7.4.16
The issue you are facing:
I have a nextcloud install in a docker container with a NGINX proxy on the same machine,
I am trying to setup my desktop client but it keeps returning this:
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
I have already searched across other support topics but adding 'overwriteprotocol' => 'https',
to config.php does not fix anything and 'overwrite.cli.url' => 'domainname',
Does anyone understand what the issue could be and what else i could check?
Is this the first time youâve seen this error? (Y/N):
Yes
Steps to replicate it:
- Install Nextcloud with the standard docker image
- install reverse proxy on the same machine
- insert config lines mentioned before
- attempt to connect desktop client
The output of your Nextcloud log in Admin > Logging:
No log related to this issue gets made
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'trusted_proxies' => ['172.0.0.1'],
'overwritehost' => 'server.nextcloud.com',
'overwriteprotocol' => 'https',
'overwrite.cli.url' => 'server.nextcloud.com',
'overwritecondaddr' => '^172\.0\.0\.1$',
'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,
),
),
'instanceid' => '****',
'passwordsalt' => '****',
'secret' => '****',
'trusted_domains' =>
array (
0 => 'https://server.nextcloud.com',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'sqlite3',
'version' => '21.0.0.18',
'overwrite.cli.url' => 'server.nextcloud.com',
'installed' => true,
'app_install_overwrite' =>
array (
0 => 'files_external_dropbox',
),
'maintenance' => false,
'mail_from_address' => 'noreply',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'server.nextcloud.com',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => '172.0.0.1',
'mail_smtpport' => '587',
'mail_smtpname' => 'noreply@server.nextcloud.com',
'mail_smtppassword' => '****',
);
The output of your Apache/nginx/system log in /var/log/____
:
an.ip.address.0 - - [21/Aug/2021:21:39:52 +0000] "GET /login HTTP/1.1" 301 169 "-" "Go-http-client/1.1" "-"
an.ip.address.0 - - [21/Aug/2021:21:39:52 +0000] "GET /login HTTP/1.1" 200 14872 "http://server.nextcloud.com/login" "Go-http-client/1.1" "-"
an.ip.address.1 - - [21/Aug/2021:21:39:55 +0000] "GET /apps/logreader/poll?lastReqId=JhbJQHHqOrasEE9R3QLy HTTP/1.1" 200 22 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0" "-"
an.ip.address.1 - - [21/Aug/2021:21:40:06 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0" "-"
an.ip.address.1 - - [21/Aug/2021:21:40:16 +0000] "GET /apps/logreader/poll?lastReqId=JhbJQHHqOrasEE9R3QLy HTTP/1.1" 200 22 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0" "-"
an.ip.address.0 - - [21/Aug/2021:21:40:20 +0000] "GET / HTTP/1.1" 200 25801 "-" "Go-http-client/1.1" "-"