self-host/scripts/regenerate_certificates.sh

29 lines
506 B
Bash
Raw Permalink Normal View History

#!/bin/bash
echo "INFO Updating TLS certificates..."
cd /home/thomas/self-host/proxy/nginx || exit
sudo docker compose down
sleep 1
2025-04-05 18:38:12 +01:00
sudo certbot delete --cert-name systemsobscure.net
sleep 1
sudo certbot certonly --standalone \
-d systemsobscure.net \
-d grafana.systemsobscure.net \
-d bookmarks.systemsobscure.net \
-d forgejo.systemsobscure.net \
-d rocketchat.systemsobscure.net
echo "INFO Confirming certificate creation..."
sudo certbot certificates
sleep 1
sudo docker compose up -d