4 ms·
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 o
by eliben 3y ago
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?
- mholt 3y agoOn 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.