Nextcloud Filelink in email is http instead of https

I am using the Nextcloud add-on 1.8 with Thunderbird 52.9.1. I am not able to configure the add-on properly with the correct syntax for the Nextcloud server name.

First part of the problem:
Using https://my.server.name, Port 443 and my user id I receive message “Beim Einrichten des Kontos trat ein Fehler auf”. According to Apache access.log the error behind that is an HTTP 401. The add-on never asked me for a password.

192.168.xxx.xxx - xxx@xxx.com [19/Dec/2018:08:15:17 +0100] “GET /ocs/v1.php/cloud/user?format=json HTTP/1.1” 401 875 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1”

Second part of the problem:
Using http://my.server.name, Port 443 and my user id, the account can be configured (again without requesting my password - it is not clear to me how it can authenticate this way). Creating mail attachments works, but: the generated link starts with http:// rather than https:// The generated link does not work because http is not allowed on our server.

The server mentioned above is located behind a reverse proxy which has a public IP address and a proper DNS entry, and works fine so far with Nextcloud.

The first part of the problem has been resolved. I deleted the add-on, its xpi file, and cleared the Thunderbird cache. After that the add-on asked me for a pasword also when I specified https://my.server.name.

The second part of the problem still exists. The Download-Link in the email is http instead of https.

If I look at the share created in the /Mail-attachments folder, it is https. So why does it appear as http in the email?

Can you tell me which protocol is used in about:config “mail.cloud_files.accounts.account1.server”?

Sorry, but my browser doesn’t know anything about this key.

We were able to resolve this issue. It turned out that the following config changes were required:
‘trusted_proxies’ =>
array (
0 => ‘192.168.xxx.xxx’,
),
‘forwarded_for_headers’ =>
array (
0 => ‘HTTP_X_FORWARDED’,
1 => ‘HTTP_FORWARDED_FOR’,
),
‘overwriteprotocol’ => ‘https’,

To summarize, it was first a Thunderbird issue and then a config issue for Nextcloud. The filelink add-on had nothing to do with it.

Your Thunderbird has a button “open configuration” under settings -> advanced. That’s the about:config of Thunderbird.

1 Like