mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-10-01 04:45:34 -04:00
deploy nginx snippets
This commit is contained in:
parent
cd8acd3b69
commit
0c46ce2027
@ -29,8 +29,9 @@ rsync -rpcv --fsync --chmod=D755,F644 --delete static-tmp/ $remote:$target
|
||||
ssh $remote "ln -snf $target /srv/element.grapheneos.org && sync /srv/element.grapheneos.org"
|
||||
|
||||
sed -i "s|/srv/element.grapheneos.org|$target|" nginx-tmp/nginx.conf
|
||||
rsync -rpcv --fsync --chmod=D755,F644 --delete nginx-tmp/nginx.conf $remote:/etc/nginx/nginx.conf
|
||||
rsync -rpcv --fsync --chmod=D755,F644 --delete nginx-tmp/mime.types $remote:/etc/nginx/mime.types
|
||||
rsync -rptcv --fsync --chmod=D755,F644 --delete nginx-tmp/nginx.conf $remote:/etc/nginx/nginx.conf
|
||||
rsync -rptcv --fsync --chmod=D755,F644 --delete nginx-tmp/mime.types $remote:/etc/nginx/mime.types
|
||||
rsync -rptcv --fsync --chmod=D755,F644 --delete nginx-tmp/snippets/ $remote:/etc/nginx/snippets
|
||||
ssh $remote nginx -s reload
|
||||
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user