NextCloud Freenas 11.3

fahadshery

Contributor
Joined
Sep 29, 2017
Messages
179
Hi Everyone,

I installed the nextcloud for the first time via the normal Plugin => NextCloud (DHCP) install. Created a Dataset and Mounted it.
I can access the webUI at: http://192.168.1.10

My question:

I want to assign this jail a local hostname to this: i.e. http://192.168.1.10 => http://nextcloud.home

How do I do that?

After this, I could use openssl utility to create a self signed cert and change nginx to be able to serve https instead of http.

any help would be highly appreciated

thanks
 

fahadshery

Contributor
Joined
Sep 29, 2017
Messages
179
thanks, both for the reply.
I have looked at your script @danb35 and it says "First, you must own or control a real Internet domain name."
I have no domain registered and for now, I want to run it locally i.e. don't require external access. So not sure if it would work.
@freedombacon Here is my /etc/resolv.conf "within the jail":
Code:
root@nextcloud:~ # cat /etc/resolv.conf                                                                         │        hwaddr 01:63:e0:00:0c:0a
# Generated by resolvconf                                                                                       │        nd6 options=1<PERFORMNUD>
search lan                                                                                                      │        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)                     
nameserver 192.168.1.254 


it states that it was Generated by resolvconf. So I was assumming that I had to find resolvconf (there are more than 1 unfortunately within the jail) and add the ip manually?

whats your take on it?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
so will it create a local domain name "nextcloud.local" for example?
If you're using a self-signed cert (or no cert at all), it will take any host name you give it--you just need to configure your local DNS such that that host name resolves to your Nextcloud installation.
how do I get started?
Exactly as the instructions in the resource you already linked to specify.
 
Top