Last Updated: November 2021
HTTPS is the secure way of serving websites that won't compromise the data of the website or your users. Most web browsers will warn users when they are using a site that is not secured with HTTPS, which can be a deterrent for some users. This method involves configuring Nginx on the VM to manage the SSL certificates required for HTTPS. The good news is that using Certbot, this can be completely automated after some initial set up.
Complete the Certbot section of the Configure HTTPS tutorial to obtain free SSL certificates and configure Nginx for HTTPS/SSL.
Open the HTTPS port for the Azure VM if you did not do so already when creating the VM:
Navigate to the Overview page for the VM Resource.
Click on Networking in left navigation panel.
Click on the Add inbound port rule button.
Fill out the Add inbound security rule form as follows:
Source port ranges: *
Press the Add button.
Visit your portal url using HTTPS to verify that it worked (e.g. "https://myfirsttethys.org"). Look for the indicator in your web browser, usually a lock symbol.