Alles anzeigenHi everyone,
in case you want to connect for syncing your Nextcloud with a local LAN connection as well as out of your local LAN ( via duckDNS,spDYN,etc.), the following config adjusting works for me.
To enable a local connection, you have to forward the exposed Docker port 443 (80 if needed) to your wished port - here 444. The Nextcloud config needs little adjustment as well. Add your OMV IP with respective Nextcloud Docker port to the trusted_domain array.
Codetrusted_domains' => array ( 0 => 'your.domain-Nextcloud.com', //here should be your DuckDNS/DNSprovier Domain 1 => '192.168.2.3:444', //here should be the IP of your OMV with respective Nextcloud docker port forwarding ),
Furthermore, when you follow the provided instructions on how to setup the linuxserver/letsencrypt, you have to add following lines to your Nextcloud config:
Code# make sure that your dns has a cname set for nextcloud # assuming this container is called "letsencrypt", edit your nextcloud container's config # located at /config/www/nextcloud/config/config.php and add the following lines before the ");": # 'trusted_proxies' => ['letsencrypt'], # 'overwrite.cli.url' => 'https://nextcloud.your-domain.com/', # 'overwritehost' => 'nextcloud.your-domain.com', # 'overwriteprotocol' => 'https',
Here you have to change the 'overwrite.cli.url entry and delet or mark as comment overwritehost in the Nextcloud config:
Code'overwrite.cli.url' => 'https', //instead of 'https://nextcloud.your-domain.com/' 'overwritehost' => 'nextcloud.your-domain.com', <- delete this line or marks as a comment
Restart your Nextcloud Docker.
Now you should be able to open Nextcloud with your local IP as well with your own domain. But be aware, if you log in locally and share a folder/file, the created link will be with your local IP and therefore not accessible from outside of your network. You can either replace the IP from the created link with your domain
Codelocally created shared link: https://192.168.2.3:444/s/jkyY6jP2dnzDdEF replace the IP with your domain to make link accessible for public: https://your.domain-Nextcloud.com/s/jkyY6jP2dnzDdEF
or you have to login with your domain on Nextcloud and create the share link from there.
I'm trying to figure this out for a couple of weeks now. It is still not working, though. Could you please share your whole (anonymised) config.cfg? Thanks a lot!