-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetupcert.sh
More file actions
16 lines (14 loc) · 912 Bytes
/
setupcert.sh
File metadata and controls
16 lines (14 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# From the certbot site (nginx on Ubuntu 16.04)
apt-get update
apt-get install software-properties-common
add-apt-repository ppa:certbot/certbot
apt-get update
apt-get install python-certbot-nginx
# Now to get the certificate
# We give it a directory on the server where it can put a file which will be visible at the site root, this is to confirm we own the domain
# the react app dist folder is shared with the static docker container as a volume so that should be good.
# Note that you will also need the domain to be pointing to this box, DNS changes can take a while so you're going to be without https for a bit
certbot certonly --webroot -w /var/www/wikilogic/react-app/dist -d alpha.wikilogicfoundation.org
# If that works, there should be cert stuff in:
# /etc/letsencrypt/live/alpha.wikilogicfoundation.org
# That's on the droplet. The proxy docker container is expecting it to be in the same place.