add 2nd website server

This commit is contained in:
Daniel Micay
2021-07-28 00:10:43 -04:00
parent e898fc2385
commit 276a701772
5 changed files with 57 additions and 25 deletions

17
certbot-replicate Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
set -o errexit -o nounset -o pipefail
replicas=(
replica1.grapheneos.org
)
for replica in ${replicas[@]}; do
echo
echo Deploying to $replica
echo
rsync -rptvl --progress --delete /etc/letsencrypt/ $replica:/etc/letsencrypt
rsync -rptvl --progress --delete /etc/nginx/ocsp-cache/ $replica:/etc/nginx/ocsp-cache
ssh root@$replica nginx -s reload
done