OSTREE-TRIVIAL-HTTPD(1)

πŸ“¦
version 2022.7 Β· 2 versions
, in debian bookworm

πŸ’– ostree-trivial-httpd β€” the manual page, but make it cute ✨

okay so bestie, welcome to ostree-trivial-httpd, a page from the ostree trivial-httpd manual. it's giving "tiny webserver that just vibes" and honestly? iconic. let's get into it 🫢


🌸 NAME 🌸

ostree-trivial-httpd β€” literally just a Simple webserver. that's it. that's the whole job. she serves, she slays, she does not elaborate πŸ’…


✨ SYNOPSIS ✨

ostree trivial-httpd [OPTIONS...] [DIR]

so you run it, you hand it some OPTIONS... if you're feeling fancy, and you optionally point her at a DIR. simple as. no cap πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: this runs a simple webserver and keeps it running until it gets killed. yes, until it gets killed β€” she does not leave on her own, she has main character energy and she is staying 😭

if DIR is not specified, it defaults to the current directory. so if you don't say where, she just assumes you meant "right here, bestie". periodt 🌈


πŸ’… OPTIONS πŸ’…

  • --daemonize, -d β€” fork into the background when ready. she's like "i'll be right back" and then just… goes and lives her life in the background πŸ™ˆ
  • --autoexit β€” automatically exit when the directory is deleted. the moment her whole world (the dir) disappears, she dips. no notes, honestly πŸ’€
  • --port-file, -p="PATH" β€” write the port number to PATH. and ooh, cute detail: use - for standard output. so - is the "just tell me right here in the terminal" move ✨
  • --port, -P β€” use the specified TCP port to listen on. you pick the port, she listens. teamwork, baby 🫢
  • --force-range-requests β€” force range requests by only serving half of files. yes, HALF. she's doing it on purpose. it's a bit of a chaos move but it's for testing, iykyk πŸ”₯

πŸ“ EXAMPLE πŸ“

$ ostree trivial-httpd

and boom, webserver. that's the whole example. short, sweet, ate πŸ’–


heads up bestie: this page doesn't list any other options, env vars, exit statuses or files, so neither do i. we keep it faithful. no invented lore in this household 🧚

this has been OSTREE TRIVIAL-HTTP(1), brought to you by OSTree 🌟 thanks for reading, mwah, go serve something cute πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from