A while ago, I showed the easiest way to get set up with a nextcloud instance, through snaps. Now it's time to make sure that instance is properly secured through HTTPS, so we'll see how to add that layer of security for the Nextcloud snap.
Set up your own Linux server with LINODE :
http://www.linode.com/linuxexperiment(USE OFFER CODE LINUXEXP19)
Support the channel on Patreon:
https://www.patreon.com/thelinuxexperimentFollow me on Twitter :
http://twitter.com/thelinuxEXPWhat I use to make my videos:
Microphone:
https://amzn.to/2PsNWXlGPU:
https://amzn.to/2LHZ5o5Motherboard:
https://amzn.to/2KZt63tCPU:
https://amzn.to/2IFjKrwTo get an SSL certificate, you'll need to grab a domain name. It's possible to add an https certificate to a bare IP address, but not all browsers will consider your website as secure, and might show warnings.
To book a domain name, just check on Gandi.net or any other registrar, and book whatever you want. I'll grab thelinuxexp.fr, but you could try and get one for your company's name, or your family name, if your nextcloud instance is to be your own personal cloud.
Once you bought your domain name, you have to register it with a DNS service. Think of DNS as the internet's phone book, where a domain name is linked to its associated IP address.
Most domain name registrars provide a DNS service and automatically register the domain name for you, however, they don't know your server's IP address, so we'll need to enter that ourselves.
To get your ip address, just type ifconfig in your server's console, or grab the IP address from your hosting service's dashboard. We could also change the other various records, that are linked to email services or subdomains, but I won't go into that level of detail here.
Either go to your registrar's dashboard to enter the IP address associated with the domain name, or use your hosting service interface to do the same. Here, I'll do it with Linode in the domains tab, since it already has all the information needed. I'll just type the domain name, the email address associated with it, and tell it to use the records from my Nextcloud server so that it can transfer all the needed information to the DNS service.
Now, our server is associated to our domain name. It will take a few hours to make sure everything is correctly propagated to other DNS services. After we wait a little bit, if we type thelinuxexp.fr in our browser, we should arrive to our Nextcloud instance.
Enabling HTTPS for the nextcloud SNAP
Now, we'll log onto our server. i'll still use my Nextcloud box I set up in the last video.
By default Nextcloud only responds to requests made by the localhost hostname, so we'll have to set it up to make sure it can respond to requests made from the domain name or the IP address, s
...
https://www.youtube.com/watch?v=g0mS1z8Hmhw