paapereira.xyz

Activate WebDAV in Seafile

I turned off WebDAV in Seafile some time ago because it wasn’t working.

Can’t remember the issue itself, but I wasn’t actively using it so…

I’m now in version 9.0.13. Here’s how I enable it.

Make sure you have pycryptodome installed.

1sudo pip install pycryptodome==3.12.0

Activate WebDAV in seafdav.conf

1[WEBDAV]
2enabled = true
3port = 8888
4share_name = /seafdav
5show_repo_id = true

Configure ProxyPassReverse in Apache. In my case /etc/httpd/conf/extra/httpd-vhosts.conf

1<Location /seafdav>
2RequestHeader edit Destination ^https: http:
3ProxyPass http://127.0.0.1:8888/seafdav
4ProxyPassReverse http://127.0.0.1:8888/seafdav
5</Location>

If you have 2FA configured you can’t login via WebDAV. The trick is to activate a different password for WebDAV. In seahub_settings.py the following.

1ENABLE_WEBDAV_SECRET = True
2WEBDAV_SECRET_MIN_LENGTH = 12

Restart.

1sudo systemctl restart seafile
2sudo systemctl restart seahub

Now in Seafile, in Setting you have a new option to add a password for WebDAV.

You can access WebDAV with https://yourdomain/seafdav

#Linux #Arch Linux #Seafile