How to easily run a Webdav server in a Docker container (s3.toot.io)
from hisold@toot.io to selfhosted@lemmy.world on 04 Feb 20:27
https://toot.io/users/hisold/statuses/113947500397701388

How to easily run a Webdav server in a Docker container

A lot of open source software lets you synchronise data via webdav, but how do you get a #webdav server?
Using Apache with the dav module is a common approach, but I couldn’t bother to set it up that way.
My way is different: Rclone can act as a webdav server and is easy to configure.
I’ve been using it for 3 years and it’s very reliable.
Have a look at the compose file in the picture.
@selfhosted

#selfhosted #webdav

threaded - newest

Shimitar@downonthestreet.eu on 04 Feb 21:27 next collapse

Nice idea! But how to create different shares with different users? Can it authenticate via SSO?

YurkshireLad@lemmy.ca on 04 Feb 22:09 next collapse

I use sftpgo.com at home for backing up and accessing files. It’s a private unshared network and it works well.

ashley@lemmy.ca on 04 Feb 22:23 next collapse

I often use dufs

hempster@lemm.ee on 05 Feb 12:05 collapse

That’s cool. I use h5ai Kinda old now, might give dufs a try!

TCB13@lemmy.world on 04 Feb 23:20 next collapse

Nginx is easy to setup as WebDAV server.

hisold@toot.io on 05 Feb 12:06 collapse

@TCB13 According to the docs, the Dav module has to be manually enabled at compile time and that doesn't seem to be the case with the official docker image

TCB13@lemmy.world on 05 Feb 21:12 collapse

Debian repositories include the dav module by default. Not sure about what’s going on with docker.

Xanza@lemmy.world on 05 Feb 14:04 next collapse

Caddy.

{
    order webdav before file_server
}

webdav.example.com {
    root * /data/webdav
    basicauth {
        user1 hashed-password
    }
    webdav
}

Takes less than a minute.

fmstrat@lemmy.nowsci.com on 05 Feb 17:17 collapse

For anyone else curious, Nextcloud has WebDAV out of the box, too.

hisold@toot.io on 05 Feb 17:27 collapse

@fmstrat @selfhosted As far as I know, everything behind the scenes of #Nextcloud is WebDAV.
Simple services like #Syncthing or baikal for CalDAV are sufficient. I just don't like Nextcloud.