this post was submitted on 04 Feb 2025
82 points (94.6% liked)

Selfhosted

41724 readers
574 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

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

top 10 comments
sorted by: hot top controversial new old
[–] fmstrat@lemmy.nowsci.com 3 points 5 hours ago (1 children)

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

[–] hisold@toot.io 2 points 5 hours ago* (last edited 4 hours ago)

@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.

[–] Xanza@lemmy.world 7 points 8 hours ago

Caddy.

{
    order webdav before file_server
}

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

Takes less than a minute.

[–] ashley@lemmy.ca 6 points 1 day ago (1 children)
[–] hempster@lemm.ee 1 points 10 hours ago

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

[–] YurkshireLad@lemmy.ca 5 points 1 day ago

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

[–] TCB13@lemmy.world 2 points 23 hours ago (1 children)

Nginx is easy to setup as WebDAV server.

[–] hisold@toot.io 1 points 10 hours ago (1 children)

@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 1 points 1 hour ago

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

[–] Shimitar@downonthestreet.eu 1 points 1 day ago

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