Q: Is it possible to install a WebDAV server onto a SailfishOS phone?

I’m using a Xperia 10 with SFOS in tethering mode as Internet connection + VPN for all devices in the house and also a big SD-card as NAS, accessible via SFTP. This works great since years for file copy and backup.

But next, I would like to mount the NAS volume on a GrapheneOS device using WebDAV. There are apps available for WebDAV protocol to do so on GrapheneOS. But for this I need to add WebDAV server protocol to the Sailfish OS phone that works as gateway / NAS in my home network.

Is it possible to install WebDAV server protocol onto a SFOS phone to access the SD-card of the phone via WLAN by WebDAV? If yes, what do I have to do?

Thanks very much for any hint!

1 Like

Check this tutorial: [Guide] Mount Nextcloud (WebDAV) folders locally with davfs

1 Like

There are a few servers, but the biggest hurdle for you to use them might be their dependencies, ie. Baikal is PHP based. There are also Python based Radicale and Xandikos, and Go based sftpgo (sic), SFTP, FTP/S, and WebDAV server.

1 Like

Yeah, but that’s the other way around! :slight_smile:

Seven o’9 wants the phone to act as a server.

@Seven.of.nine I think the quickest way would be to go with rclone.

It has a WebDAV server mode, and while there is no dedicated binary for sailfish OS available, the arm binaries on their home page should work.

Note that WebDAV isn’t a very “good” protocol to serve files, depending on what exactly you want to do maybe something else would be better suited.

3 Likes

Thank you @nephros !
On the Gateway/NAS phone’s SD card I have some mp3 and mp4 files, and I want to mount the SD-card as network drive on a GrapheneOS phone as network drive, to be able to choose and open the files using VLC Player.

For all other use cases, the built in SFTP server of the Gateway phone works like a charm since years. But VLC player seems to need something that looks like a local drive for the ‘open folder’ feature. No idea to do this with SFTP only.

edit: I tested with desktop computer. Playing videos on desktop computer works fine when connected to NAS by SFTP. So server / NAS is OK, and I have to solve the problem on the GrapheneOS phone.

Okay, a media server then! :slight_smile:

You may want to experiment with rclone serve dlna or one of the other serve modes.

3 Likes

It turned out that this is not necessary.
On Linux PC I can open the directory in the file manager and right click - open with - VLC Player. Works.
On other SailfishOS phone the same as on other GrapheneOS phone, it is not possible to select a file and some kind of ‘open with - some media player’, at least i found no option.

So anyhow no WebDAV necessary on the NAS phone.

Remains the question: Is it possible to ‘select file - open with - media player’ on SFOS (and GrapheneOS) phone. Any ideas?

edit: but despite this is a very interesting task.

Do not OT your own thread! :sweat_smile:

1 Like

Heh. On this Forum that’s par for the course! Every topic must go OT on the fifth reply or less! :smiley:

3 Likes

Thank’s very much @nephros . Found this: https://rclone.org/ and the package on Storeman. Will test it on a testphone, if I come clear with it, then I’ll install it on the Gateway/NAS phone and report how it works.

edit: installed rclone on my testphone but have no idea how to enable WebDAV server.
Please can anyone give me some hints for enabling WebDAV server to make media files accessible from other LAN device? Thanks for any hint!

Should be as simple as

rclone serve webdav --addr 127.0.0.1:9000 /path/to/media/folder

Replace the IP address and port as needed. Also probably add a user and a password as described in:

rclone serve webdav

2 Likes

I tried this:

[defaultuser@bastel2 ~]$ rclone serve webdav --addr 192.168.0.6:9000 /home/defaultuser/SD-Karte/1945-0CA4/

and got this:

2025/11/08 16:52:46 NOTICE: Config file "/home/defaultuser/.config/rclone/rclone.conf" not found - using defaults
2025/11/08 16:52:46 NOTICE: Local file system at /home/defaultuser/SD-Karte/1945-0CA4: WebDav Server started on 192.168.0.6:9000
2025/11/08 16:52:46 NOTICE: Local file system at /home/defaultuser/SD-Karte/1945-0CA4: poll-interval is not supported by this remote

What is missing?

Looks like there’s nothing wrong, these are just warnings.

You could set up a config file so you can have things like

 rclone share webdav my-movies:/

But that’s optional.

Check the rclone website documentation, it is really quite good!

You could also try

rclone serve dlna

if you want e.g. a smart tv to discover the share.

2 Likes