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]