self-host/scripts/regenerate_certificates.sh

16 lines
338 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
sudo certbot delete --certname systemsobscure.net
sleep 2
sudo certbot certonly --standalone -d systemsobscure.net -d grafana.systemsobscure.net -d bookmarks.systemsobscure.net -d forgejo.systemsobscure.net