I seem to have stumbled on a solution. Was checking the content of the full installation guide https://forums.truenas.com/t/a-full-guide-for-installing-nextcloud-on-truenas-scale-with-collabora-integration-and-outside-access-through-nginx-proxy-manager/5874/1 and noticed that there is a statement that the content of the config.php is not used at all and all settings need to be made in the installer. So I tried to follow what they do and modified this in the Nextcloud configuration:
- removed entry in “Host”
- added “Additional Environment Variable” OVERWRITEHOST with Value 192.168.178.28:30027
- added “Additional Environment Variable” OVERWRITECLIURL with Value https://192.168.178.28:30027
- set Certificate ID to use the freenas_default Certificate.
192.168.178.28 is the IP address of my Truenas scale installation. 30027 is the port I’ve also set in WebUI Port.
For what it’s worth, the relevant part of my config.php looks like
'overwriteprotocol' => 'https',
'overwritehost' => '192.168.178.28:30027',
'overwrite.cli.url' => 'https://192.168.178.28:30027',
'trusted_domains' =>
array (
0 => '127.0.0.1',
1 => '192.168.178.*',
2 => 'localhost',
3 => 'nextcloud',
),
and I think the overwrite statements were put there by the Nextcloud configuration edit.
Https access now seems fine, so maybe this also fixes your problem, adastra?