diff options
| author | anoduck <11767-anoduck@users.noreply.gitgud.io> | 2024-10-11 16:05:33 -0400 |
|---|---|---|
| committer | anoduck <11767-anoduck@users.noreply.gitgud.io> | 2024-10-11 16:05:33 -0400 |
| commit | 05a5f1f5b981e06ff736893beb0603be804db8be (patch) | |
| tree | a459fa66abfb8e1783f5289fb132ce3b54a9598e /sync.sh | |
| parent | 4e95b58a7fea9aa3ff611289cb28cb73118182e1 (diff) | |
perf: :zap: Added weights to names. added IndexNow file.
added weights to persons. Added file for indexnow.
Diffstat (limited to '')
| -rwxr-xr-x | sync.sh | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |
