mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +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 stop ingress
|
|
sudo certbot renew
|
|
sudo cp /etc/letsencrypt/live/$HOST/fullchain.pem $(pwd)/Certs/ServerCerts/Cert.crt
|
|
sudo cp /etc/letsencrypt/live/$HOST/privkey.pem $(pwd)/Certs/ServerCerts/Key.key
|
|
docker compose start ingress |