Suggestion request: Self-hosted app for shared directories like google drive
from SinTan1729@programming.dev to selfhosted@lemmy.world on 30 Apr 14:05
https://programming.dev/post/29515452

I thought of this after a recent trip with some friends. We shared the photos when we were still in person. But sometimes we need to share a lot of photos over the internet. In the past, we have used a shared google drive directory for this. But I’d prefer a self-hosted option. There should be some sort of password protection as well (ideally per share, and no need for accounts). One should be able to both access the current files and upload new ones, just like google drive or dropbox.

I currently have FileShelter, which works for 1-to-1 sharing but not for groups. I guess something like ProjectSend would work, but it’s too complex for my usecase. I’d prefer something more lightweight since I’ll maybe use it once every few months. Also, it should be noob-friendly, and accessible using a browser.

Update: I’m very happy with copyparty. It does what I want, and much much more. I even replaced my older webdav server with it since it provides more granular control over share locations and permissions. Kudos to the developer @tripflag@lemmy.world!

#selfhosted

threaded - newest

ironhydroxide@sh.itjust.works on 30 Apr 14:13 next collapse

I use nextcloud for this. It’s a bit much for just simple file share, but it works for me.

SinTan1729@programming.dev on 30 Apr 14:18 collapse

Yeah, it’s a bit too much I think.

atzanteol@sh.itjust.works on 30 Apr 14:45 collapse

Too much what exactly? Don’t use the functionality you don’t want.

SinTan1729@programming.dev on 30 Apr 14:49 next collapse

Storage, RAM, CPU usage. I prefer not to have such a large piece of software running for no reason. It might seem silly, but I hate using resources for no reason. I’ll rather have 5 lightweight apps running instead of a huge one, of which I’ll only use a few parts.

flightyhobler@lemmy.world on 30 Apr 15:29 next collapse

Since when is syncthing a heavy app?

Cerothen@lemmy.ca on 30 Apr 21:22 collapse

This confuses me a bit, technically nextcloud is just a PHP script that only runs when you actually perform a page request.

If you don’t enable the Cron then it does even less than a normal install.

markstos@lemmy.world on 01 May 11:45 collapse

You still have manage upgrades due security vulns in all the features you are ignoring.

Legume5534@lemm.ee on 09 May 20:17 collapse

Docker.

Onomatopoeia@lemmy.cafe on 30 Apr 14:15 next collapse

Resilio Sync or Syncthing

Ah, just saw the browser requirement.

In nextcloud discussions I’ve heard of Seafile. I’ve never used it, so not sure what it’s capable of.

Legume5534@lemm.ee on 09 May 20:18 collapse

Seafile is closed source, Chinese made (make of that what you will), and the backend files are obfuscated and unable to be restored in a failure.

sneezycat@sopuli.xyz on 30 Apr 14:18 next collapse

Maybe something like xbackbone? I’ve used it to share small-ish files and it works fine; I don’t know how much of a pain it would be to use for a group of people, but as long as everyone has an account they should be able to access files with a link.

SinTan1729@programming.dev on 30 Apr 14:20 collapse

This looks pretty promising. Do you know if it’s possible to add per-share passwords, so that I don’t need everyone to open an account?

Edit: It’s not.

sneezycat@sopuli.xyz on 30 Apr 14:28 collapse

Unfortunately that doesn’t seem possible, afaik. Although you could always create a zip file with a password, and share it with an open link (anyone with the link can download it, no need for account).

SinTan1729@programming.dev on 30 Apr 14:30 collapse

Yeah, but that’s already possible with my current setup using FileShelter. I’d like them to be able to upload as well.

just_another_person@lemmy.world on 30 Apr 14:28 next collapse

You’re kind of asking the wrong question.

Are there ways to share stuff with a group of people that are self-hosted? Absolutely.

Can you get security through those means? Not without some unified authentication.

Maybe back up a few steps and figure out specifically how much trouble you’re willing to go through for this. There’s a reason these photo sharing platforms exist with sharing and permissions.

SinTan1729@programming.dev on 30 Apr 14:33 collapse

I don’t care too much about security, since I’ll delete everything in a few days after copying them to my gallery. Then, I usually share a link with them to an album on my PhotoPrism instance. So, per share password is fine by me.

just_another_person@lemmy.world on 30 Apr 15:03 collapse

Then just start an Immich instance and share them that way. Easiest route if you want to make them browsable first.

StrawberryPigtails@lemmy.sdf.org on 30 Apr 14:30 next collapse

Might take a look at NextCloud though it may be overkill as it’s intended to be a full Google Cloud or Office365 replacement. On the other hand, it is modular so you only have to set up what you actually need.

SinTan1729@programming.dev on 30 Apr 14:35 collapse

I’m strictly against Nextcloud or something similar. I prefer to run a bunch of lightweight apps, rather than one big one.

AbidanYre@lemmy.world on 30 Apr 15:17 next collapse

Seafile?

flightyhobler@lemmy.world on 30 Apr 15:30 next collapse

I still haven’t tried it but I think someone suggested sftpgo for a similar use case a couple of days ago.

HelloRoot@lemy.lol on 30 Apr 15:40 next collapse

I am currently super happy with sftpgo.com

N0x0n@lemmy.ml on 01 May 01:40 collapse

I think this one fits the bill ! From what I saw in the options you can even share a directory with multiple users while everyone has it’s own place and create public links… Never used these functions, but seems possible !

There’s also a webdav share functionality if thats something OP is interested in !

Darkassassin07@lemmy.ca on 30 Apr 16:09 next collapse

I use filebrowser.org for this.

Nice lightweight filebrowsing/sharing with user management. Users can have their own dedicated directories, or collaborate.

You can also create share links that allow anyone with the link to view/download files. Optionally password protected.

Here’s a demo you can mess with: demo.filebrowser.org User: demo Pass: demo

SinTan1729@programming.dev on 30 Apr 20:02 collapse

Thanks, I took a look. It’s very close to what I want, but it still doesn’t support uploads in shared directories. It seems to be a pretty highly requested feature though. So maybe it’ll happen at some point.

Darkassassin07@lemmy.ca on 30 Apr 20:28 collapse

You could setup a user account like the share you’re describing. There’s a setting to prevent the user from changing their password.

Just pass out those credentials to anyone you want to collaborate with; they don’t need their own individual accounts.

SinTan1729@programming.dev on 30 Apr 20:55 collapse

That’s a pretty good idea, actually. I’ll try that out. Thanks.

q7mJI7tk1@lemmy.world on 01 May 02:57 collapse

Yes, as @Darkassassin07@lemmy.ca says, just create a new user for each event you want to share photos about: ‘BeachBBQ’, ‘WeekendStay-July’ etc, then bind those user accounts to whatever folders you want to have the photos in and set the user restrictions to upload, share, but not delete for example.

I also use various FileBrowser instances, with a different subdomain pointing to them, also as a way to filter out usage as well. collegefriends.mydomain.com could take you to a FileBrowser instance that only has access to photos from a certain friend group. Not sure how useful that would be to you, but it’s another way of controlling the data flow.

Ulrich@feddit.org on 01 May 11:11 collapse

just create a new user for each event you want to share photos about: ‘BeachBBQ’, ‘WeekendStay-July’ etc

I use Immich for that. You just create a shared link and then tick the setting to allow other users to upload.

Won’t work for other filetypes though.

poVoq@slrpnk.net on 30 Apr 16:15 next collapse

bewcloud.com

github.com/bewcloud/bewcloud

Is a new option I recently learned about.

dan@upvote.au on 30 Apr 18:17 collapse

Does this have a way of sharing a directory publicly?

poVoq@slrpnk.net on 30 Apr 18:20 collapse

Being worked on apparently.

matron1049@lemmy.dbzer0.com on 30 Apr 16:19 next collapse

Maybe Picoshare

Xanza@lemm.ee on 30 Apr 18:29 next collapse

lychee.electerious.com

Super small. Lightweight. Web focused. Only downside is no multi-user access. Setup an account to share between your friends, and give them the login information. Then they can upload albums, edit albums, whatever. Anything uploaded is private unless shared, then anyone with the link can view the photos.

Seems like a decent fit for you. They’re also working on multiple users.

42yeah@lemm.ee on 30 Apr 21:02 next collapse

Self-plug: PENEfiles! (yes it’s an unfortunate name but I didn’t know back then cuz I am not a native speaker). Comes with a tag system and file ownership management. Supports direct link sharing, and the whole website can be visited without logging in. Here is a detailed intro and here is the source code.

<img alt="" src="https://lemm.ee/pictrs/image/ec6f54ac-8dfc-4d96-97ce-c244b064a7be.jpeg">

hperrin@lemmy.ca on 01 May 00:33 next collapse

I’ve used WebDAV with Nephele:

hub.docker.com/r/sciactive/nephele

It works with multiple users and has built in browser support.

Owlfiles on mobile makes it easy to import all your photos to it.

tripflag@lemmy.world on 01 May 02:14 next collapse

Mind if I suggest my own software, copyparty?

Regarding authentication, someone who has an account (in this case just yourself) can create password-protected shares which other people can browse, or upload, or browse+upload to (configurable when creating the share).

There is WebDAV support, and it should integrate well enough with shares, but I haven’t tested that specifically.

It has photo and video thumbnails, and a basic image-viewer, and with some elbow-grease it can also show exif-tags (gps-coordinates etc).

There is also optional file dedup, so if two people upload the same file, it’ll detect and skip that during the 2nd upload (doesn’t waste any bandwidth) and swap out the new file with a symlink to the existing one. Default disabled to avoid surprising someone with symlinks.

I think the following command would be enough to get you started:

wget https://github.com/9001/copyparty/releases/latest/download/copyparty-sfx.py
python3 copyparty-sfx.py -a sintan:yourpassword -v .::A,sintan --shr=/shr -e2dsa -e2ts

but since that’s entirely unreadable, you can do it with a config file instead,

[global]
  e2dsa  # enable filesystem indexing 
  e2ts  # enable media indexing (music tags)
  shr: /shr  # enable shares under this url

[accounts]
  sintan: yourpassword 

[/]  # create a volume at this url
  /srv/share/partypics  # the filesystem path to share
  accs:
    sintan: A  # give sintan read-write-move-delete-admin

and use it like this:

python3 copyparty-sfx.py -c the.conf

there’s another example here and here for inspiration.

haverholm@kbin.earth on 01 May 02:42 next collapse

Oh hey, this is just what I was looking for recently! I wanted to recommend PirateBox to another thread on here, but realised it was eol'ed six years back. This is pretty much similar usage, right?

tripflag@lemmy.world on 01 May 03:20 collapse

Hadn’t heard about PirateBox before – love the concept, but nah aside from a small amount of overlap they’re very different things :-)

When users join the PirateBox wireless network and open a web browser, they are automatically redirected to the PirateBox welcome page. Users can anonymously chat, post images or comments on the bulletin board, watch or listen to streaming media, or upload and download files inside their web browser.

I guess if you put copyparty on a raspberry pi (or boot the copyparty live-cd on a nuc) then you get something vaguely similar – a wifi node where you can download and upload files, but none of the other stuff (chat, messageboard, captive portal). Maybe cool ideas for future spinoff projects hehe

haverholm@kbin.earth on 01 May 03:27 collapse

Right, it was the local filesharing part (like at a W/LAN party) that I wanted to recommend pirate box for, so I overlooked the other functions 🙂

Either way, bookmarked your GH repo for future reference, excellent project!

irmadlad@lemmy.world on 01 May 06:31 next collapse

To me, it’s always nice meeting the face behind the software. I have never used copyparty, but if I had a use case, it would be high on the list just based of the volume of detailed instructions. I think that is probably the most detailed selfhosted piece of software I’ve seen at GitHub…gotta be something good going on with that. And…and replete with pictures of the UI in a variety of scenarios. That’s just top drawer in my book. If a need ever arises, I have bookmarked it, because that’s where I’ll start. Awesome job my man, and thank you for your dedication to the craft.

SinTan1729@programming.dev on 01 May 14:22 collapse

Hey, that looks awesome. I’ll try it out when I get back from work.

Edit: This is awesome! It satisfies my requirements and goes beyond. Great app!

Appoxo@lemmy.dbzer0.com on 01 May 04:30 next collapse

Pictures specifically Immich.
But I don’t know how (well) it works without any password and shared albums.

theorangeninja@sopuli.xyz on 01 May 09:32 collapse

Many great options already but I would like to add filestash to the list. I did not test it out yet but maybe it fits your need.