this post was submitted on 20 Aug 2025
21 points (86.2% liked)

Selfhosted

50648 readers
630 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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

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

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I have a bunch of plain text recipe files on a NAS. If a family member wants to cook something, they ask me to print them a copy.

I’m looking for a simple as possible way to put them on a local web server via a Docker image or similar.

Basically all I need is to have http://recipes.local/ show the list of files, then you can click one to view and or print it.

Don’t want logins. Don’t need ability to edit files. Want something read-only I can set and forget while I continue to manage the content directly on the NAS.

What would you suggest?

top 16 comments
sorted by: hot top controversial new old
[–] lorentz@feddit.it 1 points 3 hours ago

Just use the directory listing of your favourite web server. You have a HTTP read only view of a directory and all of its content. If you self host likely you have already a reverse proxy, so it is just matter of updating its configuration. I'm sure it is supported by Apache, Nginx, LightHttpd, and Caddy. But I would expect every webserver supports it. Caddy is the easiest to use if you need to start from scratch.

[–] dan@upvote.au 20 points 16 hours ago* (last edited 15 hours ago) (2 children)

Install Nginx, add autoindex on; to the default site config, throw the files into /var/www/html or whatever default folder it uses, and delete the default index.html file. If you need to do it via Docker then use the official Nginx image https://hub.docker.com/_/nginx

You could also just share the files via SMB. Easy to use on a PC - you could configure their computers to mount the share as a network drive on boot (e.g. R:, for recipes). Not sure about other phones but the built-in files app on my Galaxy S25 Ultra supports SMB too.

[–] deegeese@sopuli.xyz 3 points 14 hours ago

I already have SMB but want something easier for non tech family members.

Nginx sounds like the way to go and just symlink www -> recipes

Thanks.

[–] Luckyfriend222@lemmy.world 3 points 16 hours ago

Based on OPs requirements, this is the answer

[–] k4j8@lemmy.world 10 points 14 hours ago

Caddy has this feature built-in. It looks nice too.

recipes.local {
	root * /srv
	file_server
}

https://caddyserver.com/docs/caddyfile/directives/file_server

There's also File Browser.

[–] cmnybo@discuss.tchncs.de 12 points 16 hours ago

A web server with directory listing enabled would work fine for that.

[–] tatterdemalion@programming.dev 2 points 11 hours ago

I use dufs. Copyparty seems good too.

[–] cute_noker@feddit.dk 3 points 15 hours ago* (last edited 15 hours ago)

Copy files and do a

python3 -m http.server

Very simple and does the job.

[–] Tolookah@discuss.tchncs.de 3 points 15 hours ago (2 children)

Not quite what you want, but I am a huge fan of mealie.

[–] AbidanYre@lemmy.world 4 points 13 hours ago (1 children)

Came here to say the same thing. More than OP is asking for, but it's fantastic.

[–] curbstickle@lemmy.dbzer0.com 3 points 12 hours ago

Just used it to import a recipe, tweak it, and then I made it. Big fan of mealie.

I bet it would do a decent job of parsing those text files.

[–] undefined@lemmy.hogru.ch 2 points 11 hours ago (1 children)
[–] Tolookah@discuss.tchncs.de 3 points 11 hours ago

Yes, that. It's a bit much, but it's really easy to use.

[–] _cryptagion@anarchist.nexus 1 points 13 hours ago* (last edited 13 hours ago)

why not copyparty?

[–] Tramort@programming.dev 0 points 11 hours ago* (last edited 11 hours ago)

sandstorm is dead simple to host and crazy secure.

it handles user accounts for you and there are lots of apps to serve files or track text files.

it rocks.

[–] HelloRoot@lemy.lol 0 points 16 hours ago