VERY simple web-based reliable file browser/hosting
from SpiderUnderUrBed@lemmy.zip to selfhosted@lemmy.world on 08 Jul 17:19
https://lemmy.zip/post/43513639

Like how on Debian’s website, you can find their ISO’s and other related files in this very simple file browser layout which looks kind of old but I want that, know any projects or way to set something like that up? The modern self-hosted stuff just does not seem simple enough, and both aesthetically and from a functional perspective I would like something like what debain does with their own files. I also want it to be reliable, for some reason, with both immich and nextcloud, a relative of mine was unable to download alot of photos without the download not even starting on Nextcloud, or it stopping 30% of the way on immich, if reliable downloads necessitate a desktop app with their own unique file exchanging protocol I would be ok with that too (willing to compromise with the desired aesthetic and minimalist design)

The ideal thing is the thing here: cdimage.debian.org/debian-cd/

#selfhosted

threaded - newest

rtxn@lemmy.world on 08 Jul 17:31 next collapse

You can use basically any HTTP server to achieve that, like Apache or Nginx. If the directory (specified by the path in the URL) doesn’t contain a file that matches the default file in the config (index.html and such), the server will list the directory contents instead.

wreckedcarzz@lemmy.world on 09 Jul 14:42 next collapse

The “not my problem lol you figure it out” mode

seadoo@lemmy.world on 09 Jul 19:30 collapse

I guess in order for this to work you need to have set up that directory with the routing configuration? I’ve only ever gotten 404

Darkassassin07@lemmy.ca on 10 Jul 08:02 collapse

You have to explicitly enable directory indexing; but then it will automatically generate simple http pages listing directory contents.

nginx.org/en/…/ngx_http_autoindex_module.html

neidu3@sh.itjust.works on 08 Jul 18:44 next collapse

Those are directory listings. They are the default in apache2 (maybe others as well… I only know apache2), unless disabled or disallowed in the configs (enabled and allowed by default). If the directory you’re accessing such as 192.168.123.123/somedir/ does not contain a default file, such as an index.html, the directory list will be served instead.

WhiteOakBayou@lemmy.world on 08 Jul 18:46 next collapse

Have you thought of using an ftp server? That dir tree view used to be the default.

callcc@lemmy.world on 09 Jul 10:50 collapse

Don’t recommend using FTP. It’s a shitty old protocol that needs to die. Just use nginx or apache with directory listing enabled.

WaterWaiver@aussie.zone on 08 Jul 20:17 next collapse

Read-only, or the ability to edit filenames & upload files?

Read only: as per other answers here, basically any HTTP server. The easiest one I know would be darkhttpd, because it requires no config files and can be run without root.

Read write: I like WFM github.com/tenox7/wfm

istdaslol@feddit.org on 08 Jul 20:33 next collapse

Most Webbrowser Support ftp. So if you setup an ftp server you can access it by typing ftp://[server] as the URL, if you want to do it remote I am legally required to recommend you using ftps

486@lemmy.world on 09 Jul 00:16 next collapse

Most Webbrowser Support ftp.

None of the popular web browsers support FTP. Maybe some niche browsers still do, but certainly not “most”.

Appoxo@lemmy.dbzer0.com on 09 Jul 00:37 collapse

Not anymore.
Chrome removed ftp access.
I believe Firefox followed as well.

perishthethought@piefed.social on 08 Jul 21:18 next collapse

Like others said, if you just want to let people download files from your server, use a directory listing.

For my self-hosting though, I use FileBrowser and it's very simple but still works well.

https://filebrowser.org/

https://github.com/filebrowser/filebrowser

Appoxo@lemmy.dbzer0.com on 09 Jul 00:37 next collapse

And make sure to not be listed on r/openDirectories without intending it ;)

Darkassassin07@lemmy.ca on 10 Jul 08:08 collapse

Note; that project is no longer being maintained.

github.com/filebrowser/filebrowser/…/4906

There is a fork working it’s way out of beta though.

github.com/gtsteffaniak/filebrowser

Peter_Arbeitsloser@feddit.org on 08 Jul 22:22 next collapse

I use Caddy for all kind of things and it has a very simple file browser built in that can be activated super easily: caddyserver.com/docs/quick-starts/static-files

Looks like shown here: peterpf.dev/posts/caddy-simple-fileserver/

irmadlad@lemmy.world on 09 Jul 08:00 collapse

I did not know Caddy could do that. TIL

Thanks

ikidd@lemmy.world on 08 Jul 22:37 next collapse

python3 -m http.server

drkt@scribe.disroot.org on 09 Jul 02:25 next collapse

I built my own drkt.eu/files/
drkt.eu/files/fileindexer.zip

irmadlad@lemmy.world on 09 Jul 07:57 collapse

An…interesting…collection of stuff.

drkt@scribe.disroot.org on 09 Jul 09:04 collapse

:)

thenose@lemmy.world on 09 Jul 02:28 next collapse

I use yazi via ssh(it beats most file browsers even the gui once with photo preview and such) and before that i was browsing through the casa OS file manager. Casa was my second entry to self hosting

sandbag@lemmy.zip on 09 Jul 04:59 next collapse

Cockpit has a file browser.

Tywele@lemmy.dbzer0.com on 09 Jul 07:21 next collapse

I think github.com/sigoden/dufs is exactly what you want.

hperrin@lemmy.ca on 09 Jul 23:02 collapse

Nephele with SERVE_LISTINGS turned on and a read only mount.

It shows listings in the browser, just like Apache, but can also be accessed with a file browser, because it’s a WebDAV server.