chore (infra): add TLS cert generation script
This commit is contained in:
parent
04bcde7b54
commit
86037a16ea
1 changed files with 15 additions and 0 deletions
15
scripts/regenerate_certificates.sh
Normal file
15
scripts/regenerate_certificates.sh
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/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
|
Loading…
Add table
Reference in a new issue