Hello YouTubers, welcome to my Nesquik channel
Today's video is going to talk about Nescloud installation with SSL certificate
In my previous video, as you can see on my screen, I have a couple of videos and posts about installing Nescloud
but none of them has been used with SSL certificate. This video is going to show you almost exactly the same steps, but just added a SSL certificate part using Docker technology as well
No more talking, let's start it. I already started the instance in AWS, which is running on 3.3 micro instance type, 1GB RAM, 1 CPU, and 10GB hard drive
These are very basic ones. I got a public IP, which I already have a connection, built it to it, SSL connection
First thing, of course, we need to do is update. I already have all commands in my post, I will list them in video description
Here, mostly, I will just do copy-paste those command names and configuration names into this instance
This instance is Ubuntu 18.04 version
Next step is going to install Docker
Enable the service, and make sure it started running the system rebooted
After Docker has been installed, then Docker Compose has been installed as well
I am going to paste the command. You will find it on my post
Make it back to home. Also check the Docker Compose version. After installing Docker and Docker Compose, you can start preparing some folders and files, especially Docker Compose file
I am going to make a Nginx folder. Conf.d folder. That's going to be for Nginx configuration file
I am going to create a Nginx.nextcloud file. All configuration files can be found from my blog post
You can just copy-paste in, as I did here. So this is Nginx.nextcloud configuration file
No need to change anything, just copy-paste in and you will be good enough
Eventually, this folder is going to mount into Nginx Docker. Nginx file created
We are going to create Docker Compose file. Same thing, we are going to copy all configuration files in
There are two options here. One, Docker Compose file as using database
One, without database. In this video, I am going to try to make it simple
We are not going to use database Docker. We are going to use proxy Docker
In proxy Docker, there is a third part using NAT Encrypt certificate
The basic configuration you need to change is email. You can keep using the same or using your own
The most important is FQDN name. Nextcloud.cfg.org is the one I am using
You may want to change this one. Other than that, you can keep exactly same
Only change the FQDN name to your own FQDN setting. Save the configuration
Those two files have been configured. If you can confirm those are fine
There are two things you may want to check. First thing is security group
You want to make sure your EC2 instance, which I am using
has right security group rules, which is allowing port 80 and 443, those two ports, have to be allowed
Make sure your virtual machine firewall has these two rules. Also, since I am using Ubuntu Linux version
by default, the firewall is not activated. I don't need to make any change
If you enable the firewall on your Linux machine, you may want to add those two rules into your local firewall as well
That's the one thing you have to keep in mind. Firewall has to be open
Second thing is you need to have these DNS records. To be pointing to your virtual machine's public IP
which I did already. I created a record. And pointing to the virtual machine's public IP
So, those two steps done. Once you get those two steps done, else you will get some failure message when you do SS certificate application
and sign for that. So, once you get those two steps, then you can bring your Docker up using Docker compose file command
We're going to go to our configuration file folder. We can bring our Docker up using our Docker compose file
As you can see, we have configuration. Wrong in here, so we're going to make that changes
That is because during our copy paste, I missed a couple of lines here
So, we can add those lines here and save it. Just to make sure
Take a look again. Now, things correct. Now, we can bring our Docker up
Now, you can see that creating network, creating volume. So, there are two volumes going to create
One is for let's encrypt for the third. And then another one is for next cloud
We are pulling all images from the cloud. It was eight probably less than two minutes
Then those three Dockers will be come up. It's faster, probably less than one minute
Now, it's up. You can verify those three Dockers. You can see we are mapping our NG-Docker to a bigger port 80 and port for three
So, once Dockers are up, you can bring that. Now, we should be able to go back to our browser to browse into those next cloud
This one is checked off. So, that's exactly the page we are looking for
So, we need to create an admin account. Username and password in
And here is the settings you need to pay attention to. So, there's a storage and database
By default, we are using SQLite. So, since we didn't set up any MySQL, Malia DB into our Docker compose file
so we cannot use in SQLite. So, of course, if we are using SQLite, there is performance warning here
But that's what we're trying to do today. We make it single
We don't use MySQL Malia DB. In my next video, we cannot use that option
I'm going to show you how to set up this MySQL Docker as well
So, I'm going to uncheck install documented apps. We don't need that for this demonstration
So, we logged in. It just takes probably a couple of seconds to get the dashboard showed up
We can quickly browse it to confirm everything works as expected. We can see the built-in photos
And we can see the built-in videos as well. Those are already seen
By default, it's already included. That's a Nextcloud picture for employees. Beautiful
And one thing I want to talk about is in the settings, if you go to administration overview here
you can see there's some warning message. The first one, we already got that SQLite being used
There's a warning for that. If we change it to MySQL or Malia DB, this warning is going to go away
But here, it looks like we are missing index for this table
We're going to fix that by entering two commands as well. We're going to go back to our SSH session
So, I'm going to run two commands here to rebuild the index
and remove those warning messages for administration tab. So, those are running well
Don't worry about those commands I'm going to put into my post. You will find the link in my video description and you will find all commands there
So, we're going to go back here, refresh this page. So, right now, we only have the SQLite warning message
You can see HTTPS has been signed as a block sign on a URL
So, let me certify it has been applied into this URL well
Thank you for watching this video