News for hackers. Stuff that matters.
Re:static-server: an HTTP server in Go for static content by eliben on Saturday September 16, 2023 @05:03PM (#37538671)
Thanks for the comment, Matt! I love Caddy. For some reason I thought it needs a configuration file.

The simplest cmdline I found to run it as a local server on a non-priveledged port with listings is:

    $ caddy file-server --listen localhost:8099 --browse
Is there a simpler way I'm missing?
Re:static-server: an HTTP server in Go for static content by mholt on Saturday September 16, 2023 @06:29PM (#37539432)
On Mac, the defaults aren't privileged. (Not sure why. That's just how it is.)

The --browse flag is optional and unrelated to ports/privileges. Otherwise, that sounds about right. Caddy defaults to port 80 unless you give it a domain name, then it defaults to port 443 and redirects HTTP on port 80 to HTTPS.