azure - create a domain name(新建自定义域名) , 申请tls/ssl证书
创建一个DNS
通过上面2个步骤,public ip和domain name就可以对应起来了。
如何申请ssl/tls证书:
https://certbot.eff.org/lets-encrypt/ubuntuxenial-nginx
https://certbot.eff.org/
apt update
apt install snapd
snap install hello-world
hello-world
Snap is now installed and ready to go!
snap install core
snap refresh core
snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot
certbot --nginx
certbot certonly --nginx
service nginx restart