From fe94e1d4cae198fb99e1a11074b12b81cc08f8a0 Mon Sep 17 00:00:00 2001 From: alvis Date: Sun, 8 Mar 2026 16:08:00 +0000 Subject: [PATCH] Add WebDAV mount instructions to Seafile page --- Seafile.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Seafile.md b/Seafile.md index 77c0718..0eb9b1e 100644 --- a/Seafile.md +++ b/Seafile.md @@ -49,6 +49,36 @@ sudo mount -t davfs https://docs.alogins.net/seafdav/ /mnt/seafile -o uid=1000,g **Note:** add `127.0.0.1 docs.alogins.net` to `/etc/hosts` — the public IP is unreachable from the host itself (hairpin NAT). +### Permanent mount (fstab) + +Install davfs2 and allow non-root mounts: +```bash +sudo apt install davfs2 +sudo usermod -aG davfs2 alvis +``` + +Store credentials in `/etc/davfs2/secrets`: +``` +https://docs.alogins.net/seafdav/ allogn@gmail.com +``` + +Add to `/etc/fstab`: +``` +https://docs.alogins.net/seafdav/ /mnt/seafile davfs uid=1000,gid=1000,_netdev 0 0 +``` + +Mount: +```bash +sudo mkdir -p /mnt/seafile +sudo mount /mnt/seafile +``` + +### Manual mount +```bash +sudo mount -t davfs https://docs.alogins.net/seafdav/ /mnt/seafile -o uid=1000,gid=1000 +sudo umount /mnt/seafile +``` + Enabled in `seafdav.conf` (inside container at `/shared/seafile/conf/`): ```ini [WEBDAV]