Setting up the HTTPS server
Last updated
Last updated
With , you can quickly deploy and manage applications in the AWS Cloud without having to learn about the infrastructure that runs those applications.
If you are not familiar with ELB, you can see .
You can deploy your server on Elastic Beanstalk, as it supports the deployment of web applications from Docker containers.
In order to deploy your server using Elastic Beanstalk, you can follow the official .
Once you have your server deployed on Elastic Beanstalk, you can follow up with .
The second option is to use Nginx, we already set it up inside the docker container, so you don't have to worry about Configuring it. You just need to follow the steps below:
In order to create a secure connection with the user’s browser, we’ll need to obtain a digital certificate and a private key. Normally, you get the certificate from a certificate authority such as . Make sure to install the certificate using , which will take care of reconfiguring NGINX for you.
As you can see in your project root directory, we have two main directories, nginx
and server
. Once you have your certificate and private key, you need to add them to nginx
directory with the following names:
cert.pem
for the certificate
key.pem
for the private key
Once you have your private key and ssl certificate in nginx
directory, all you need is to build the docker-compose
That’s it!
Now, if you access , your connection will be secure.
For more information, check out .