Skip to content

Commit 6ebe84f

Browse files
committed
Let's encrypt steps.
1 parent 8696bcd commit 6ebe84f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/ch15_deploy/final/server/server_setup.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,11 @@ rm /etc/nginx/sites-enabled/default
7272
cp /apps/app_repo/app/ch15_deploy/final/server/pypi.nginx /etc/nginx/sites-enabled/pypi.nginx
7373
update-rc.d nginx enable
7474
service nginx restart
75+
76+
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
79+
80+
add-apt-repository ppa:certbot/certbot
81+
apt install python-certbot-nginx
82+
certbot --nginx -d fakepypi.talkpython.com

0 commit comments

Comments
 (0)