self-host/scripts/regenerate_certificates.sh

16 lines
339 B
Bash
Raw Normal View History

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