this post was submitted on 09 Jul 2025
49 points (96.2% liked)

Selfhosted

61236 readers
384 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

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/

top 24 comments
sorted by: hot top controversial new old
[–] rtxn@lemmy.world 21 points 1 year ago (2 children)

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 points 1 year ago

The "not my problem lol you figure it out" mode

[–] seadoo@lemmy.world 1 points 1 year ago (1 children)

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 points 1 year ago

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 points 1 year ago (1 children)

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 points 1 year ago

I did not know Caddy could do that. TIL

Thanks

[–] neidu3@sh.itjust.works 14 points 1 year ago* (last edited 1 year ago)

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 points 1 year ago

python3 -m http.server

[–] perishthethought@piefed.social 7 points 1 year ago (2 children)

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 points 1 year ago

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

[–] Darkassassin07@lemmy.ca 1 points 1 year ago

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

[–] drkt@scribe.disroot.org 3 points 1 year ago* (last edited 1 year ago) (1 children)
[–] irmadlad@lemmy.world 2 points 1 year ago (1 children)

An...interesting...collection of stuff.

[–] WaterWaiver@aussie.zone 3 points 1 year ago* (last edited 1 year ago)

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

[–] sandbag@lemmy.zip 1 points 1 year ago

Cockpit has a file browser.

[–] Tywele@lemmy.dbzer0.com 1 points 1 year ago

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

[–] hperrin@lemmy.ca 1 points 1 year ago* (last edited 1 year ago)

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.

[–] WhiteOakBayou@lemmy.world 1 points 1 year ago (1 children)

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

[–] callcc@lemmy.world 1 points 1 year ago

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

[–] thenose@lemmy.world 1 points 1 year ago

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

[–] istdaslol@feddit.org 0 points 1 year ago (2 children)

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 points 1 year ago

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 2 points 1 year ago

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