...
Yueteng yh958@cornell.edu
Root domain
Root
...
domain
...
is:
...
diaper.cf
Registered as a free domain (renewable every 12 months) at https://www.freenom.com/
...
Current registration expires on 2021-12-05 (December 5th) (Must renew at the above website before expiration)
...
| Code Block |
|---|
Press Enter to Continue Waiting for verification... Cleaning up challenges Subscribe to the EFF mailing list (email: diapertestemail@gmail.com). IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/diaper.cf/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/diaper.cf/privkey.pem Your cert will expire on 2021-03-05. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run "certbot renew" |
Create a cert folder under project path, and copy both .pem files into the folder. Then change the permissions by:
sudo chmod ec2-user:ec2user ./certs/*This will allow flask and docker to access the cert files.
A separate docker-compose config file named docker-compose-prod.yml is created.
Since only production (and test) environment will use this cert. When launching docker, must specify this yml file.
Command Line
| Code Block |
|---|
docker-compose -f docker-compose-prod.yml up -d |