.nh .TH "Caddy" "8" "Apr 2023" "Auto generated by spf13/cobra" "" .SH NAME .PP caddy-file-server - Spins up a production-ready file server .SH SYNOPSIS .PP \fBcaddy file-server [flags]\fP .SH DESCRIPTION .PP A simple but production-ready file server. Useful for quick deployments, demos, and development. .PP The listener's socket address can be customized with the --listen flag. .PP If a domain name is specified with --domain, the default listener address will be changed to the HTTPS port and the server will use HTTPS. If using a public domain, ensure A/AAAA records are properly configured before using this option. .PP If --browse is enabled, requests for folders without an index file will respond with a file listing. .SH OPTIONS .PP \fB--access-log\fP[=false] Enable the access log .PP \fB--browse\fP[=false] Enable directory browsing .PP \fB--debug\fP[=false] Enable verbose debug logs .PP \fB--domain\fP="" Domain name at which to serve the files .PP \fB-h\fP, \fB--help\fP[=false] help for file-server .PP \fB--listen\fP="" The address to which to bind the listener .PP \fB--root\fP="" The path to the root of the site .PP \fB--templates\fP[=false] Enable template rendering .SH SEE ALSO .PP \fBcaddy(8)\fP .SH HISTORY .PP 17-Apr-2023 Auto generated by spf13/cobra