Hello everyone, welcome to my Network YouTube channel
In my previous video, I showed you how to install Ubuntu Desktop Browser using Cortana
and how to access it from the browser. This was based on a GitHub project, Docker Ubuntu VNC Desktop
I was able to show you step by step how to use Cortana to build the Ubuntu VNC Desktop
in the cloud. In this video, I am going to further, I am going to install Nginx to access reverse proxy
stand in front of this Ubuntu Desktop Docker and I am also going to use insert bot to sign
SSL certificate and using HTTPS with a subdomain to access it. Previously, we have to use import 6080 to access to it
I already created a domain, a record to set up novnc.51sec.org to point to the public
IP of this virtual machine
So we can see there are two Docker running, one is called the novnc, one is Cortana
This is Cortana WebD. So we can go to command line to do whatever we need to do for the Docker
You also can see the memory usage, CPU usage and network usage
That is why I am using Cortana for this deployment because it gives me clear pictures how much
memory CPU network use using by this Docker. So let's start with today's lab
We are going to deploy Nginx into this VPS, same as we did for Cortana and novnc
Firstly, we are going to add container and we are going to name it as Nginx
So we are going to pull an image for Nginx latest. We can also have these two ports, one is 80 and the last one is 80 on Nginx
Since we are going to use third port to issue a Let's Encrypt certificate, so we are going
to use port 443 as well. So that is the only thing you need to do
If you want, you can change the restart policy to always. After that, deploy the container
In a couple of seconds, this Docker should be up and running
To verify that, you can access the subdomain novnc.cp1spec.org
It's not FTP to F, it's FTP since we didn't use third port yet
And now we can see welcome to Nginx. So the next step is what we are going to do
We are going to go into Nginx container and configure Nginx as a reverse proxy to proxy
the traffic to Linux Ubuntu VNC desktop service. What we are going to do is, we are going to do apt update
Now we are given the latest package list. We can just do install nano, which we are going to use to configure the proxy server
configuration in the Nginx configuration folder. After that, we can go to Nginx.conf.disk folder
There is a default.conf file already. So what we need to do is create a new configuration file
This is nano. I'm going to say novnc.crn. And I'm going to create a new configuration file. So this is nano
I'm going to create a new configuration file. And I'm going to create a new configuration file. This is nano. I'm going to create a new configuration file
This is nano. I'm going to create a new configuration file. This is nano. I'm going to create a new configuration file