File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed
app/ch15_deploy/final/server Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,27 @@ update-rc.d nginx enable
7474service nginx restart
7575
7676
77- # Optionally add SSL support via Let's Encrypt:
78- # https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04
77+ # Optionally add SSL support via Let's Encrypt
78+ # NOTE: These steps have changed since the recording.
7979
80- add-apt-repository ppa:certbot/certbot
81- apt install python-certbot-nginx
80+ # ###### NEW STEPS ###############################################
81+ # See https://certbot.eff.org/instructions?ws=nginx&os=ubuntufocal&tab=standard
82+
83+ # Because always a good idea :)
84+ apt update
85+ apt upgrade
86+
87+ # Not need even though it's in the instructions, is installed on Ubuntu
88+ # Skip -> install snapd https://snapcraft.io/docs/installing-snapd
89+
90+ snap install --classic certbot
91+ ln -s /snap/bin/certbot /usr/bin/certbot
8292certbot --nginx -d fakepypi.talkpython.com
93+
94+ # ###### THESE ARE THE OLD STEPS #################################
95+ #
96+ # # https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04
97+ #
98+ # add-apt-repository ppa:certbot/certbot
99+ # apt install python-certbot-nginx
100+ # certbot --nginx -d fakepypi.talkpython.com
You can’t perform that action at this time.
0 commit comments