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