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: https://cdimage.debian.org/debian-cd/
24 Comments
rtxn@lemmy.world · 21 pts · 1y
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 · 6 pts · 1y
The "not my problem lol you figure it out" mode
seadoo@lemmy.world · 1 pts · 1y
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 · 2 pts · 1y
You have to explicitly enable directory indexing; but then it will automatically generate simple http pages listing directory contents.
https://nginx.org/en/docs/http/ngx_http_autoindex_module.html
Peter_Arbeitsloser@feddit.org · 16 pts · 1y
I use Caddy for all kind of things and it has a very simple file browser built in that can be activated super easily: https://caddyserver.com/docs/quick-starts/static-files
Looks like shown here: https://peterpf.dev/posts/caddy-simple-fileserver/
irmadlad@lemmy.world · 3 pts · 1y
I did not know Caddy could do that. TIL
Thanks
neidu3@sh.itjust.works · 14 pts · 1y
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 http://192.168.123.123/somedir/ does not contain a default file, such as an index.html, the directory list will be served instead.
ikidd@lemmy.world · 8 pts · 1y
python3 -m http.serverperishthethought@piefed.social · 7 pts · 1y
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 · 3 pts · 1y
And make sure to not be listed on r/openDirectories without intending it ;)
Darkassassin07@lemmy.ca · 1 pts · 1y
Note; that project is no longer being maintained.
https://github.com/filebrowser/filebrowser/discussions/4906
There is a fork working it's way out of beta though.
https://github.com/gtsteffaniak/filebrowser
WaterWaiver@aussie.zone · 3 pts · 1y
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 https://github.com/tenox7/wfm
drkt@scribe.disroot.org · 3 pts · 1y
I built my own https://drkt.eu/files/
https://drkt.eu/files/fileindexer.zip
irmadlad@lemmy.world · 2 pts · 1y
An...interesting...collection of stuff.
drkt@scribe.disroot.org · 1 pts · 1y
:)
Tywele@lemmy.dbzer0.com · 1 pts · 1y
I think https://github.com/sigoden/dufs is exactly what you want.
hperrin@lemmy.ca · 1 pts · 1y
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.
sandbag@lemmy.zip · 1 pts · 1y
Cockpit has a file browser.
thenose@lemmy.world · 1 pts · 1y
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
WhiteOakBayou@lemmy.world · 1 pts · 1y
Have you thought of using an ftp server? That dir tree view used to be the default.
callcc@lemmy.world · 1 pts · 1y
Don't recommend using FTP. It's a shitty old protocol that needs to die. Just use nginx or apache with directory listing enabled.
istdaslol@feddit.org · 0 pts · 1y
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 · 4 pts · 1y
None of the popular web browsers support FTP. Maybe some niche browsers still do, but certainly not "most".
Appoxo@lemmy.dbzer0.com · 2 pts · 1y
Not anymore.
Chrome removed ftp access.
I believe Firefox followed as well.