chore (infra): format cert script better
This commit is contained in:
parent
34436fb978
commit
ed4a714a64
1 changed files with 16 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue