I have installed Nextcloud 22.2.0 on Ubuntu Server 21.04 on a Raspberry Pi 4 with 8 GB of RAM.
I am using Duck DNS as DDNS.
On my Android phone, I have set up the NextCloud application with a URL like “mycloud.duckdns.org”. This means that when I am outside my network (LAN), I can connect to NextCloud on my RPI because “mycloud.duckdns.org” refers to the local IP address of my Raspberry Pi.
But when I connect my Android to my local network via WiFi, I can’t reach NextCloud.
When I’m connected to WiFi, “mycloud.duckdns.org” leads me to my router’s private IP address and not to my RPI’s.
This causes a problem when I want to synchronise large files such as photos.
Apparently, I can’t register the same user account twice with two different addresses (one for when I’m outside; the other for when I want to use my WiFi.
Thank you @devnull !
I enabled NAT loopback and it solved the problem.
Now when I installed NextCloud, I followed a couple of video tutorials, where it was suggested to buy a domain name in order to secure a valid SSL certificate.
But I didn’t manage to set it up.
The goal is to have a secure connection with - for example - https://cloud.mydomain.com that would point to my NextCloud setup.
I am studying now to learn what a CNAME record is and how to set it up.
I don’t understand what kind of information I should input in order to have cloud.mydomain.com resolve like mycloud.duckdns.org.
For duckdns.org, I installed a script on my Ubuntu Server so the only information I have from Duck DNS is a token.
Yes, that is the same like the duckdns service and you can do this directly without going through duckdns. Not sure if their API is compatible with the software that you currently use.
The CNAME will certainly be faster and easier to implement. If you can do this directly with gandi without passing through duckdns is certainly a cleaner solution. I’d try that for a different subdomain first, and if it is working, you can switch the CNAME record to this method.
Thank you @tflidd !
Yes, it would be great if I could do everything with Gandi.net. without using DuckDNS.
So far I have managed to create a CNAME record so that I can access NextCloud with http://cloud.mydomain.com. And it’s not a web redirection.
So, we’re progressing !
Now, there are still a few questions:
I don’t know how to change the settings on my Android NextCloud and DAVx5 apps (because now I don’t need to use mycloud.duckns.org anymore, do I?).
Do I have to uninstall the apps and install them back again?