Update Production HTTPS Setup

Linden Crandall 2025-02-08 01:36:41 +00:00
parent b2482e6683
commit 78fdf48940

@ -81,8 +81,15 @@ server {
}
}
```
- Run `sudo docker compose up` to generate SSL cert
- There should be a new /certbot folder created at the project root, and the cert and key `.pem` files should be created at `/etc/letsencrypt/live`
- Run `sudo docker compose up` to generate SSL cert. You should see something like this in the console, note the .pem key locations:
```
certbot-1 | Successfully received certificate.
certbot-1 | Certificate is saved at: /etc/letsencrypt/live/automatisch.lasthourhosting.org/fullchain.pem
certbot-1 | Key is saved at: /etc/letsencrypt/live/automatisch.lasthourhosting.org/privkey.pem
certbot-1 | This certificate expires on 2025-05-09.
certbot-1 | These files will be updated when the certificate renews.
```
- There should be a new /certbot folder created at the project root, and the cert and key `.pem` files should be created at `/etc/letsencrypt/live`
- After this completes, stop the containers `ctrl+c` and overwrite the `automatisch_letsencrypt_nginx.conf` file with the `secondary_automatisch_letsencrypt_nginx.conf` file's contents which has the 443 https and SSL configs:
```
cp https/nginx/secondary_automatisch_letsencrypt_nginx.conf https/nginx/automatisch_letsencrypt_nginx.conf