Add WebDAV mount instructions to Seafile page

2026-03-08 16:08:00 +00:00
parent fe7bd689e1
commit fe94e1d4ca

@@ -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 <password>
```
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]