From 05a5f1f5b981e06ff736893beb0603be804db8be Mon Sep 17 00:00:00 2001 From: anoduck <11767-anoduck@users.noreply.gitgud.io> Date: Fri, 11 Oct 2024 16:05:33 -0400 Subject: perf: :zap: Added weights to names. added IndexNow file. added weights to persons. Added file for indexnow. --- sync.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'sync.sh') 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 -- cgit v1.2.3