Improving NextCloud remote connection.

Joined
Apr 26, 2021
Messages
2
Hello everyone, I’m a new on the forum as well a new user for TrueNAS Core.


I created a NAS server with two functionality:
- Local area network, that was ease to setup.
- And the remote connection using the Nextcloud server plugin, the last one is the only one that has given me problems.

I was able to configure my router to able dynamic dns connections and created a port, thing that you encounter on internet as tutorials. And I want say that my router have a crap custom firmware that support only one dynamic dns connection and two dynamic dns providers; noip and dyndns. After that I enabled dynamic dns services on TrueNAS with a free NoIP account.

I early installed nextcloud plugin, flowing some tutorials and I make my first remote connection like http:// mycustondomain .ddns .net, and was a partial success. I have a connection on other networks or internet points but secure connection was needed for the logon on my local cloud. So I forced https connection flowing this tutorial (https://www.youtube.com/watch?v=6mDnBsFxcPc).

Now I can open the nextcloud logon only on my local network, if I try to access the https:// mycustondomain .ddns .net on another internet point, it can't load. This keeps loading until the time expires.

I think the problem is that I have to improve the nginx server connection somehow, but almost all tutorials that I found was linux based. I fell very insecure to try to improvise at this point, and until now nothing like self hosting website. So, that’s why I try the help on this forum.





Thank you all.
 
Joined
Apr 26, 2021
Messages
2
I am still trying to find a way that my nextcloud plugin can connect remotely over the internet.
I finally succeed in use ports so I installed certbot and certbot-nginx plugin but when I use the command "certbot --nginx -d mycustondomain.ddns.net" it returns with the message:

# http-01 challenge for mycustondomain.ddns.net
# Waiting for verification...
# Challenge failed for mycustondomain.ddns.net
# http-01 challenge for mycustondomain.ddns.net
# Cleaning up challenges
# Some challenges have failed.
#
# detail: No valid IP adresses found for mycustondomain.ddns.net

Well, last time i was able to make remote connection using dhcp, but this time (I reinstalled nextcloud plugin) my ip is fixed.
I already properly edited /nextcloud/config/config.php to have nextcloud's ip and dns address as trusted hosts. Problaly I may not know where I must paste this adresses on outher locations? I still see if there are another certbot/nginx command that I can use.

Before I can improvise, (and messing up in the process) I whant to hear some experienced option from you guys.
 
Top