chore (infra): format cert script better

This commit is contained in:
thomasabishop 2025-04-06 10:14:10 +01:00
parent 34436fb978
commit ed4a714a64

View file

@ -2,14 +2,26 @@
echo "INFO Updating TLS certificates..." echo "INFO Updating TLS certificates..."
cd /home/thomas/self-host/proxy/nginx cd /home/thomas/self-host/proxy/nginx || exit
sudo docker compose down sudo docker compose down
sleep 2 sleep 1
sudo certbot delete --cert-name systemsobscure.net sudo certbot delete --cert-name systemsobscure.net
sleep 2 sleep 1
sudo certbot certonly --standalone -d systemsobscure.net -d grafana.systemsobscure.net -d bookmarks.systemsobscure.net -d forgejo.systemsobscure.net 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