summaryrefslogtreecommitdiffstats
path: root/sync.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsync.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/sync.sh b/sync.sh
index fae9475..6bccfae 100755
--- a/sync.sh
+++ b/sync.sh
@@ -7,6 +7,7 @@ SRC="$REPO/public/"
REMOTE="216.189.157.213"
DST="/var/www/htdocs/corruptlamar"
USERNAME="anoduck"
+API="f18dd78af41a4d1ab6d15d7099522c61"
# ------------------------------------------
compush() {
git add .
@@ -29,6 +30,22 @@ sync() {
# $DST_PATH must be _open_ and ends _with_ _NO_ "/".
rsync -azv -e ssh --delete "$SRC" "$USERNAME"@"$REMOTE":"$DST"
}
+
+indexnow() {
+ request='POST /IndexNow HTTP/1.1
+Content-Type: application/json; charset=utf-8
+Host: api.indexnow.org
+{
+ "host": "www.example.org",
+ "key": "f18dd78af41a4d1ab6d15d7099522c61",
+ "keyLocation": "https://www.example.org/f18dd78af41a4d1ab6d15d7099522c61.txt",
+ "urlList": [
+ "https://www.example.org/url1",
+ "https://www.example.org/folder/url2",
+ "https://www.example.org/url3"
+ ]
+}'
+}
# ------------------------------------------
if [[ ! "$PWD" == "$REPO" ]]; then
cd "$REPO" || return