Nextcloud 17 install on FreeNAS 11.26U & DDNS setup question

jamilian

Dabbler
Joined
Nov 18, 2019
Messages
13
Hi

I successfully installed Freenas 11.2U and Nextcloud 17 on a VMWare ESXi but have ran into a major issue trying to get DDNS (No-IP) running with Nextcloud.

I can access Nextcloud locally on the RFC1918 IP but when I try to access it from the internet with either port 80 or 443, using DDNS (NO-IP), it just times out and I get no connection.

Actions undertaken:
1. Checked and verified that the DDNS url is online e.g. http://xxx.ddns.net
2. Configured the ddns url in the 'trusted domains' in the config.php file of the nextcloud jail.
3. Checked that the firewall is forwarding to the ddns url to the private IP (NAT) of the Nextcloud server.
4. Checked the log file but there's nothing in it, like it's not even getting a connection, even though I've double-checked the routing path from the firewall to the server and the /NAT/DDNS configuration which is fine. It's identical to another web server which is accessible from the internet on ddns.

I checked the documentation but cannot find any configuration examples nor detailed steps on setting up ddns for the Nextcloud jail.
Does anyone have an example configuration of the config.php file, as I suspect that something is wrong there or a step-by-step setup guide I could use from a working example?

I appreciate any help.

Thanks
 

jamilian

Dabbler
Joined
Nov 18, 2019
Messages
13
Update

It works on port 80 but not 443. Am I missing something in the setup? I think it has something to do with setting up freenas with certificates for https access.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,456
How did you install Nextcloud? If you used the plugin, there's your problem--the plugin, among its many faults, doesn't do HTTPS.
 

jamilian

Dabbler
Joined
Nov 18, 2019
Messages
13
Hi

Yes I used the plugin, so that explains why it's so difficult. I was able to redirect to another port but never 443 for https. All the docs and searches on google point to Apache server based implementations of next cloud.

Do you know which is the best way to setup nextcloud on freenas and if you do, do you have a good guide on how to do it. I'm no linus/admin expert. I just wanted to set freenas up with nextcloud for a small business to share documents easily.

Thanks
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,456
Do you know if there's a planned plugin release with https?
iX apparently aren't even interested in fixing the plugin so that it gives you a ready-to-use installation (my PR that would fix this has been outstanding for over six months with no action at all), so I wouldn't expect this is anywhere on their agenda.
Do you know which is the best way to setup nextcloud on freenas
I'm biased of course, but I think my script is a pretty good way to go:
 

jamilian

Dabbler
Joined
Nov 18, 2019
Messages
13
OK thanks for the info. I'm not that good at scripts/linux etc but I'll give it a go and let you know how it goes when I get some time. Thanks for your support
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,456
Does your script work with ddns or does it have to be fqdn?
You need a FQDN, but you still have one of those with ddns--it could be something like user.ddns.org, or some providers allow you to use a custom domain. Further questions would probably be better in the thread for the guide.
 

jamilian

Dabbler
Joined
Nov 18, 2019
Messages
13
You need a FQDN, but you still have one of those with ddns--it could be something like user.ddns.org, or some providers allow you to use a custom domain. Further questions would probably be better in the thread for the guide.
Hi

I tried your script but I keep running into the following problem,

WARNING: FreeBSD 11.2-RELEASE HAS PASSED ITS END-OF-LIFE DATE.
Any security issues discovered after Thu Oct 31 01:00:00 CET 2019
will not have been corrected.
Installing updates... done.
nextcloud successfully created!
Testing SRV response to FreeBSD
pkg.freebsd.org's SRV record could not be verified.
Testing DNSSEC response to FreeBSD
pkg.freebsd.org could not be reached via DNSSEC.
Testing DNS response to FreeBSD
pkg.freebsd.org could not be reached via DNS, check your network
Failed to create jail
root@freenas[...iocage/jails/freenas-iocage-nextcloud]#
 

jamilian

Dabbler
Joined
Nov 18, 2019
Messages
13
Hi

Ye, I used .ddns. Funny thing is that I can see the jail, ping the allocated IP address but when navigating to the ip address on port 80 or 443, I get nothing.
 

jamilian

Dabbler
Joined
Nov 18, 2019
Messages
13
Were you able to resolve this?

Hi, No I didn' resolve it as https is not supported on the plugin. I did a fresh manual install of Nextcloud and it works fine using apache24. However, I have two issues now.

One, I still cannot access Nextcloud via https and I cannot find a step-by-step guide to do this. I'm no linux expert so it's difficult.
Secondly, I cannot get the Apps and cannot find the steps to resolve this.

A lot of the information I find on configuring https access to nextcloud is hard to follow for a linux dummy. Did you get this working or not?
 

poldi

Dabbler
Joined
Jun 7, 2019
Messages
42
Hi,
sounds to me like you Apache is not configured correctly. I am no expert for Apache (I only use Nginx) but sounds to me like the virtualhost config is not ok.
I set up my Nextcloud according to this very nice guide here.
This has some sample configurations for Apache you could work with.
 
Top