Yesterweb connection with WebDAV

For some reasons, official page with WebDAV connection details is not available anymore

Just created this note as the alternative to WebArchive, plus few additional notes below:

Hostname: cities.yesterweb.org
Port: 1994
Encryption: SSL/TLS (davs://)
Username and Password are the same as the ones you just set

Nautilus

Nautilus is default file manager in the GNOME desktop environment, with native WebDAV support.

Multi-account sessions

If you own multiple accounts on Yesterweb, the auth manager would cache previous login session.

To reset it, just run following command in the terminal from the current user:

gnome-keyring-daemon -r

then, re-connect with the new account credentials.

Keyring auth issues

If accessing the keyring fails with error like:

The password you use to log in to your computer no longer matches that of your login keyring

just drop this file and try unlock it again:

rm ~/.local/share/keyrings/login.keyring

VSCode

Manual file uploads are not always useful.

It is much better to sync recent changes directly from the editor by using WebDAV extension.

WebDAV Upload (original)

1. In the VSCode, it should be available from extensions; in the VSCodium, install using VSIX file:

VisualStudio Marketplace

2. Create configuration file in the project root:

{
    "/public": {
        "url": "https://cities.yesterweb.org:1994/",
        "ignoreSSLErrors": true
    }
}

3. Open file to upload in the editor then enter:

Ctrl+Shift+P

4. Enter Yesterweb login/password (on first connection)

5. Select the operation from list:

WebDAV Upload fork by YGGverse

Official extension does not implement following features:

even pushed some PRs into the official repository,

to not await for merge, simply use this fork (YGGverse branch)

Also take a look on additional config options:

{
    "/public": {
        "url": "https://cities.yesterweb.org:1994/",
        "ignoreSSLErrors": true,
        "uploadOnSave": {
            "enabled": true,
            "pattern": [
                ".gmi$"
            ]
        }
    }
}
Source on GitHub (with build instructions)

LSAF Rest API for WebDAV Upload

Recently found yet another fork of the extension above.

I haven't tried whether Yesterweb really supports it or what is included in this fork,

but the development of this project appears to be quite active, so it is worth checking out:

Source on GitHub

Bash script

Finally, I've switched to the following script, which:

#!/bin/bash

SRC="public"
ZIP="ps.zip"

echo "snap $SRC > $ZIP ..."
cd $SRC
rm $ZIP
zip -r -9 $ZIP ./
cd ../

echo "update repository ..."
git pull
git add .
git commit -m "$(date +%s)"
git push

echo "update remote host (localnet) ..."
rclone sync $SRC localnet:public --update -v

echo "update remote host (yesterweb) ..."
rclone sync $SRC yesterweb:/ --update --no-check-certificate -v