mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
8 lines
359 B
Bash
8 lines
359 B
Bash
# Run this cron every day to see if the cert needs renewal.
|
|
export $(grep -v '^#' config.env | xargs)
|
|
npm run prerun
|
|
docker compose nginx stop
|
|
sudo certbot renew
|
|
sudo cp /etc/letsencrypt/live/$DOMAIN/fullchain.pem $(pwd)/Certs/ServerCerts/Cert.crt
|
|
sudo cp /etc/letsencrypt/live/$DOMAIN/privkey.pem $(pwd)/Certs/ServerCerts/Key.key
|
|
docker compose start nginx |