I made a video about copyparty, the selfhosted fileserver I've been making for the past 5 years.

The main focus of the video is the features, but it also touches upon configuration. Was hoping it would be easier to follow than the readme on github... not sure how well that went, but hey :D

This video is also available to watch on the copyparty demo server, as a high-quality AV1 file and a lower-quality h264.

top 100 comments

sorted by: hot top controversial new old
[–] 1 point 1 year ago

This is incredible! I'm going to play around with this in my docker stack.

  • source
  • [–] 1 point 1 year ago

    Hey! Just set this up today and it seems pretty good. Only issue I'm having is that is pretty slow to download (~2mb/s) what are some good ways to speed it up?

  • source
  • [–] 1 point 1 year ago

    Wow.

    This works crazy fast and performant. Keep up the incredible work!

  • source
  • [–] 1 point 1 year ago (1 child)

    Wo wo wow, is that my man JC Denton ??

  • source
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    This looks great, nothing to check it out.

  • source
  • [–] 1 point 1 year ago

    I'll have to say that this is about one of the most detailed instructions I've seen, replete with copious screenshots. I'm going to have to give it a go just based on that. LOL

  • source
  • [–] 1 point 1 year ago (2 children)

    Can you point me to the WebDAV code? I’m interested to see your implementation. There are some parts of the spec that are ambiguous, and I like to see how those are implemented in different servers.

  • source
  • hideshow 2 child comments
  • [–] [S] 2 points 1 year ago (1 child)

    sure! my implementation is really basic, just the stuff that's needed to make the clients i've tested happy, so there's probably still clients that won't be able to connect (And i'll fix those as soon as I hear about them!)

    httpcli.py is the http methods handler, and the webdav-specific handlers are all next to eachother, propfind // proppatch // lock // unlock // mkcol // and there's also put for the uploads, but that's not entirely webdav-specific, just webdav-aware.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 year ago

    Thanks! So you put in the displayname prop even if it’s not set by the client. For the life of me, I can’t figure out what that prop is supposed to be in the spec. It calls it a live prop, but doesn’t give an explanation or an equivalent HTTP header.

    I love how you named the error for 400 statuses, “Pebkac”! xD

  • source
  • parent
  • [–] 63 points 1 year ago (1 child)

    You made this on your phone on the bus ride to and from work.

    I cleaned the cat box yesterday and considered that an accomplishment.

    Fuck.

  • source
  • hideshow 1 child comment
  • [–] 44 points 1 year ago (3 children)

    Your readme looks super in depth, thanks for that! I haven't watched the video yet but will later.

    I didn't see it mentioned from a quick glance, but is either sftp or ftps supported?

  • source
  • hideshow 3 child comments
  • [–] [S] 38 points 1 year ago (2 children)

    SFTP is not currently on the roadmap, but it's not entirely implausible.

    FTPS is supported, but it requires an optional dependency to be installed (pyopenssl), so it's not available in the Windows EXE. And I just realized that the dependency is currently not present inside the docker images either, so I'll get that fixed right away.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 28 points 1 year ago* (9 children)

    Hey fellow scener, cool project!

    Just a few thoughts/questions:

    • BTRFS and ZFS support real deduplication via copy on write, and would eliminate all current disadvantages of symlink and hardlink deduplication. It just works.
    • Why have it be one huge python source file? This is a serious code smell imo, and something you really should avoid doing as this can be a major maintenance burden.
  • source
  • hideshow 9 child comments
  • [–] [S] 28 points 1 year ago (6 children)

    BTRFS and ZFS support real deduplication via copy on write, and would eliminate all current disadvantages of symlink and hardlink deduplication. It just works.

    yeah that's a good point, I'll add an option to take advantage of this if you know you're running on a filesystem where that works as intended.

    Why have it be one huge python source file?

    oh don't worry, it's all separate files during development -- there's a build-stage which bundles everything up into a single file for distribution. But thanks for the concern :D

  • source
  • parent
  • hideshow 6 child comments
  • [–] 5 points 1 year ago (3 children)

    Ah, so you have compiled it into one file? Didn't know that was possible for python, what tool do you use for this?

  • source
  • parent
  • hideshow 3 child comments
  • [–] [S] 16 points 1 year ago (2 children)

    sooo this is one of the things that started with someone saying "wouldn't it be funny if..."

    if you open copyparty-sfx.py in a text editor, you'll see how -- but please make sure to use an editor which is able to handle about 600 KiB of comments which contain invalid utf8 / binary garbage 😁

    I ended up rolling my own packer since I wanted optimal encoding efficiency, and everything I could find would do stuff like base85 or ucs2 tricks, but it turns out python is perfectly happy with binary garbage in comments if you declare that the file is latin-1 so it realizes all hope is lost :D

    the only drawback of the sfx.py is that it needs to extract to $TEMP before running, so that's the slight advantage of the zipapp (the .pyz alternative), but that suffers from some performance reduction in return, and is more hermetic (doesn't let you swap out the bundled dependencies with fresh versions as easily if necessary)

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago

    Ah, reminds me of the old self-extracting gzip executable trick. I used that once a very long time ago to make a 4k linux intro, before I realized to be competitive I should switch to windows to be able to use Crinkler, which is superior even though the decompressor is part of the executable.

  • source
  • parent
  • [–] 3 points 1 year ago (1 child)

    Just a remark from someone who runs ZFS since the beginning. Many people don't like the deduplication feature because of its memory footprint.

    It's also nice to have this feature without relying on a certain filesystem.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 year ago

    I assume you mean automatic deduplication? I haven't used ZFS, but BTRFS does not have that. There are a variety of ways to perform deduplication, I have duperemove scheduled to run regularly.

    If ZFS is still capable of being instructed to perform deduplication when automatic deduplication is turned off, which it really should be able to do, then this should work even with it turned off.

  • source
  • parent
  • [–] 24 points 1 year ago (1 child)

    The fact you mention security features, without ever saying it's 'super secure' tells me you know a lot about what you're doing. I'm so sick of apps like this that start with "most secure app on the net" but you know they're delusional. Thank you, going to check this out.

  • source
  • hideshow 1 child comment
  • [–] [S] 6 points 1 year ago

    so uhh, sorry for the late response to this -- was going to reply much earlier, but then suddenly it became more timely than ever...

    the good news is, I'm fairly confident in how it handles the filesystem and permissions, preventing unauthorized access to files.

    but the part I'm a bit less sure about is sanitizing user data; the kind of vulnerabilities where someone uploads a malicious file and bad stuff happens if you then open that file in a certain way, or someone sends you a malicious link and trick you into clicking it -- in other words, the kind of vulnerabilities which require the attacker to have a certain level of access already, or that requires tricking you into doing something.

    ...and with version 1.18.5 released just now, we got a prime example of exactly one of those. Really unfortunate timing, but it's a blessing to have so many new and curious eyes on it to spot these sooner rather than later. It is what it is.

  • source
  • parent
  • [–] 21 points 1 year ago (4 children)

    Put out some in-depth docker instructions and this will be common use in a month. Good work.

  • source
  • hideshow 4 child comments
  • [–] 5 points 1 year ago

    Yup, I tried to run the docker image with the suggested docker command and it errored out for lack of a config file (though it did offer a fix in the logs for mounting the current directory as read/write)

  • source
  • parent
  • [–] 17 points 1 year ago* (3 children)

    you even mention ladybird as browser, nice 😎

  • source
  • hideshow 3 child comments
  • [–] [S] 21 points 1 year ago (2 children)

    it's such an impressive project! Amazing what they've accomplished in so little time, and so important too -- we need as many options as we can get.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 6 points 1 year ago (1 child)

    I agree but it's still in an early development state. Not really usable for everyday work let alone most people never heard about it 😅 But yeah still cool to mention it under "modern" browsers. I wish them good luck with the first alpha next year. I hope it'll be successful.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 33 points 1 year ago (2 children)

    Clearly a labour of love 👍

    Maybe support for some music streaming apps (subsonic?) would be cool?

  • source
  • hideshow 2 child comments
  • [–] [S] 17 points 1 year ago (1 child)

    That's a neat idea -- I've heard that a lot of stuff uses the subsonic API under the hood, so I'll see what it would take to become compatible with that. At first glance it looks like I'd have to mine and index way more information about audio files, but could still be doable :>

  • source
  • parent
  • hideshow 1 child comment
  • [–] 16 points 1 year ago* (last edited 1 year ago) (1 child)

    Is there a way to help translate the UI.

    I would like to help translate it into Danish.

  • source
  • hideshow 1 child comment
  • [–] 15 points 1 year ago (3 children)

    Oh my god, this seems really good and closer to what I want than anything yet. Been looking for something to replace Nextcloud and found nothing good so I might take a look at this.

  • source
  • hideshow 3 child comments
  • [–] 5 points 1 year ago (2 children)

    Just curious, why did you replace nextcloud? I'm looking into transitioning from my current file server, and I've mostly heard only good things and not NextCloud.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 8 points 1 year ago*

    I want something with a permission model that works the same when accessed over a network share (SMB, ideally NFS) and access over a web interface. Ideally it would have a Mac File Provider sync client and whatever the Windows equivalent is called as well.

    Nextcloud is fine but it’s not that.

  • source
  • parent
  • [–] 13 points 1 year ago (1 child)

    Holy shit this is so unbelievably full featured it's not even funny. This is going to rattle some big names. I wonder how long till they try to shut it down because it's better than anything commercially available.

  • source
  • hideshow 1 child comment
  • [–] 13 points 1 year ago* (last edited 1 year ago)

    I haven't even tried it yet, but just from the video you can tell it's going to be insanely good. I'm so impressed.

    It's the first bit of software I've seen in a long time where I took one look and immediately thought "Fuck me, I need that!"

    I use Unraid for my NAS server and just on the off-chance I checked the Unraid community 'app store' and someone's already created a Docker definition for it, published just today! The hype is real

    I'll be giving this a shot

  • source
  • parent
  • [–] 12 points 1 year ago

    Thanks for making the video but also for providing non Youtube link. Maybe there is a PeerTube server that would enjoy hosting it.

  • source
  • [–] 10 points 1 year ago (1 child)

    This looks great but I really wish it had SFTP.

  • source
  • hideshow 1 child comment
  • [–] 9 points 1 year ago (1 child)

    I'm properly in awe at this project. Not only does it support a wide range of protocols and runs practically everywhere, but it can play audio, video, display images and has keyboard shortcut support ???

    It's got everything I could think about and so much more.

    I can't wait to try it out !

    Thank you so much for your time and for making this open source.

  • source
  • hideshow 1 child comment
  • [–] 9 points 1 year ago (5 children)

    I have a question, and I want to emphasise thar this is not criticism but a request for dive into technicalities.

    In the video you mentioned copyparty has an one-way sync tool. Is there a good reason why it's not two-way, or is this just something you weren't motivated to do?

  • source
  • hideshow 5 child comments
  • [–] [S] 15 points 1 year ago (4 children)

    No worries, good question :>

    The problem with bidirectional filesync is that it's an absolutely massive can of worms, very easy to mess up, and the consequences of messing up are usually the worst kind (loss of data). There's an insane amount of edgecases to keep in mind, and you need to get every edgecase right every single time, otherwise you might wipe someone's vacation photos, or suddenly downgrade someone's keepass database to an older version... And stuff like syncing multiple devices to the same server makes it balloon further.

    I've started becoming more confident in copyparty's filesystem-index database, but it's still just a hint/guideline, with the filesystem being the only source of truth -- it's still not something I'd trust with tracking sync-state against one or more clients.

    The bigger guys who offer bidirectional sync (nextcloud, syncthing, etc.) have spent years perfecting their logic, so I'd like to leave this in their capable hands.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 1 year ago (2 children)

    Thank you for your answer! Do you think copyparty would work together with Syncthing on the same backing directory, or would they compete for changes etc? Copyparty in this scenario would be for sharing content with friends and occasional remote upload

  • source
  • parent
  • hideshow 2 child comments
  • [–] 8 points 1 year ago (1 child)

    Ho... Ly... Shit... This is great! The UI is a bit confusing at first but doesn't take long to get what's going on. I might even be disappointed with a UI revamp 😁 I can't believe how much functionality this has. It's already replacing some processes I have for mounting drives and backing up files. Maybe I missed something, but my only complaint would be the lack of an automatic one-way folder sync in the Party UP! app.

    I'm blown away, great job!

  • source
  • hideshow 1 child comment
  • [–] 8 points 1 year ago

    Well done! This is exactly what I've been looking for! And it's fun to use and has an aesthetic that reminds me of browsing ftp servers back in the day. And these themes?! I love the whimsy mixed with actual usability.

    And its a damn good file server so far: fast, easy to use, makes reasonable security choices, and accessible in the ways I want (rclone mount)

  • source
  • [–] 8 points 1 year ago (1 child)

    Look cool! I think you should consider putting a screenshot of the UI somewhere near the top of the README

  • source
  • hideshow 1 child comment
  • [–] 8 points 1 year ago (1 child)

    Oh my gawd what a README!! I'm on my phone and I was trying to scroll back to the top of it from the bottom and I just kept on scrolling... Holy shit I'm going to put this on my kanban board give it proper attention

  • source
  • hideshow 1 child comment
  • [–] 8 points 1 year ago

    Elderly raspberry pi B [✓]

    Large portable drive gathering dust [✓]

    Guess I'm setting up a locally hosted file server in the near future.

  • source
  • [–] 7 points 1 year ago (1 child)

    Great job on something like this! I'll probably give it a whirl soon, I like Nextcloud but find it clunky sometimes because it's often a bit more than I need. Maybe breaking it up into Immich + this would help! Thank you for sharing your project!

    One thing to note, your comparison against Nextcloud has a partially-incorrect point regarding file upload max size. The client does upload chunking, so is unaffected by the Cloudflare issue as well, but I believe the web client is still affected, just not the apps. https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html#adjust-chunk-size-on-nextcloud-side

    I suspect a few others may be as well, but I'm only familiar with the Nextcloud one because that's what I've been running, and discovered in making sure I could still upload video files recorded while out and about.

    Also love that it looks like a simpler install!

  • source
  • hideshow 1 child comment
  • [–] 7 points 1 year ago (4 children)

    Sometimes I feel so new to setting up my own digital ecosystem because I look at a thing and think "that's so cool" but struggle to imagine it at home. So could someone help me understand.

    This would be a replacement for something like Google Drive or Proton Drive? The actions I would use this for would be:

    • sending files to friends
    • managing a collection of files like PDFs, music, ISO's that could be accessible by my friends (or just my household)

    So I would spin this up on my NAS or my main PC and replace those services and accomplish those actions using this software?

    Are there other services or actions I'm missing? Am I misunderstanding the premise entirely?

  • source
  • hideshow 4 child comments
  • [–] 2 points 1 year ago

    Oh yea, copyparty could do that. I might just do that too. My issue is more how do I grant them access to my network to get the thing tough? I currently use wireguard profiles and lock down where they can reach with rules and shit on a firewalla on a per account basis but that’s really complex and inelegant. It works and would working copypasta, but I kind of wish there was a simple webUI where I could define what a WireGuard user should be able to reach on my network with simple checkboxes by rules I have created over time. Probably wouldn’t tie into firewalla nicely though it could be more likely with OPNsense.

    Hmm. Surely someone must have thought of that already. It would make adopting things like copypasta much simpler and less risky.

  • source
  • parent
  • [–] 2 points 1 year ago (2 children)

    I think Copyparty would be great for that purpose. The only thing you're missing is a way to expose it to the internet, such as a public IP or some tunnel

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 8 points 1 year ago (1 child)

    Yep! Depending on what your home connection looks like, you have a few options:

    if you are lucky enough to have your own private IP-address and are able to open ports, then you're almost done already -- you can put copyparty on some port (or keep the default 3923), and then anyone could connect to it by going to https://your.ip.address:3923/

    (with this approach, you will want to create your own HTTPS certificate so the traffic is properly encrypted -- the best option here is to get a domain and get a certificate for the domain)

    however, if you are behind CGNAT, meaning your internet provider has given you a shared IP-address, then people cannot connect directly to your home-PC. One way around that issue is by setting up a machine somewhere on the internet which bridges the gap back home to your PC. Cloudflare offers this as service, and this is explained in the copyparty readme -- see the "at home" section for one way to do that.

    if you are against using Cloudflare for idealistic reasons (they are becoming quite powerful since they run a whole lot of the internet), then you can set up a cheap VPS which serves the same purpose. That's my setup, and how you are accessing the copyparty demo server right now -- I have the cheapest VPS you can get from Hetzner. The VPS is running nginx, and it forwards the traffic to my homeserver through an SSH tunnel. I haven't documented this approach in the copyparty readme, but I have a feeling a lot of other people have :>

  • source
  • parent
  • hideshow 1 child comment
  • [–] 6 points 1 year ago

    I've been using copyparty for months, and it's just been an absolute gem. and the fact there are even iOS shortcuts to upload things you stumble across while doomscrolling is just icing on top.

  • source
  • [–] 6 points 1 year ago* (last edited 1 year ago)

    Alright, you bought me with this

    Amazing presentation and nice that you have a demo!

  • source
  • [–] 6 points 1 year ago

    The video are amazing. It's entertaining and explains everything so it's easily understood.

  • source
  • [–] 11 points 1 year ago (1 child)

    I bumped into copyparty the other month when looking for a software that could let me transfer files to a friend with the ability to pause/resume. Didn't bother with it, tried another software instead. Never really got it to work so I gave up on it.

    Bumped into the YouTube video today, decided to give copyparty a shot, damn sir you've written a fine piece of software. It's so easy to get up and configure. The UI is a bit janky, but charming at the same time. Thanks for all the hard work!

  • source
  • hideshow 1 child comment
  • [–] 5 points 1 year ago (2 children)

    This is very impressive and I'm highly likely to give it a whirl. My question is, though: would it be something that my very non-tech savvy wife could use?

    Eg. I'm thinking setup the app on her phone with a default location and when she asks me for a file I can just tell her that I've "put it in the app", and she'll be able to easily retrieve it. Also same thing but vice versa, though the video seems to cover that via the Android share menu...

    Again, super impressive. Good job!

  • source
  • hideshow 2 child comments
  • [–] [S] 6 points 1 year ago (1 child)

    I have a hunch that the true answer, to be honest, is "no" -- at least with the current UI as it is. I've come to terms with not being the best at making intuitive user interfaces, so I went all-in on making it poweruser-friendly and efficiency instead.

    Yeah, there's the android app for sending files to the server, and it'll always send files to the same folder, so that part should be pretty solid. But actually grabbing files from the server, perhaps not so much. Not sure I'd risk it, but I'll leave the decision to you hehe

    I'm not aware of any user-friendly android/iOS apps for connecting to a webdav / ftps / sftp server, but if those exist, then that would probably have been a good option!

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    Been using DAVx5 on Android with it (you don't set it up as a full account, just a WebDAV mount) and the full exported filesystem shows up in the android file browser (as a remote mount like google drive)

  • source
  • parent
  • [–] 5 points 1 year ago

    This is insane. I think I'd use ten different applications and still not cover these features. And I can host this. Using a single python file.

  • source
  • [–] 5 points 1 year ago

    This looks sick. Thanks for making and sharing it!

  • source
  • [–] 5 points 1 year ago (4 children)

    I have a samba fileserver behind wireguard. Would copyparty be an improvement over samba?

  • source
  • hideshow 4 child comments
  • [–] [S] 16 points 1 year ago (3 children)

    If all you need is basic remote file storage such as a samba server, and especially if you need samba in particular, then your current solution is probably a better fit for you.

    Copyparty's main selling points is the large number of features in one package, and being pretty good at receiving file uploads (usually faster than other alternatives), but it does not have good samba support. Instead of samba, copyparty has WebDAV support, so you can still connect to it from your file manager -- but the performance will be different; depending on your access pattern and the type of files, it could be faster or slower than samba.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 5 points 1 year ago

    Haven't looked at the project yet, but that's just the greatest name for a fileserver...

  • source
  • [–] 4 points 1 year ago

    Looks really cool. Might spin up a test bed to try.

  • source
  • [–] 4 points 1 year ago* (4 children)

    Thank you so very much. I needed to transfer some files locally yesterday and didn't have a NAS set up. So I thought I would quickly set up a samba share on my pop-os media server so my spouse (windows) and I (mint) could swap/store files on the fly in the future. It took me 25 minutes and I almost gave up because my config file was having issues.

    This looks sooooo much nicer. May every road rise up to meet you

  • source
  • hideshow 4 child comments
  • [–] 4 points 1 year ago (1 child)

    I would add PairDrop to your list to have bookmarked. It's completely web-based so no download required and thus fully cross-platform. It also works across different networks (i.e. over the internet) by pairing devices or creating a room. Basically Apple AirDrop, but universal and on steroids.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 1 year ago (3 children)

    This is cool. Idk if it’s just me but the h.264 version of your video has no sound!

  • source
  • hideshow 3 child comments
  • [–] [S] 4 points 1 year ago (2 children)

    man... that's really unexpected, I went with h264+mp3 which should be the most conservative / broadly-supported combination you could possibly use, yet still (ノ ゚ヮ゚)ノ ~┻━┻

    what webbrowser / device / player are you using?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 1 year ago* (1 child)

    This is me browsing slrpnk.net using the voyager app,on iOS latest version on iPhone 14 Pro, it then opens it in whatever built in player the app uses. Other versions work fine though. This app has me excited as I consider starting self hosting!

  • source
  • parent
  • hideshow 1 child comment
  • load more comments
    view more: next ›