diff options
Diffstat (limited to 'modules/caddyhttp/fileserver')
-rw-r--r-- | modules/caddyhttp/fileserver/caddyfile.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/caddyhttp/fileserver/caddyfile.go b/modules/caddyhttp/fileserver/caddyfile.go index 06540bc..46bc5b7 100644 --- a/modules/caddyhttp/fileserver/caddyfile.go +++ b/modules/caddyhttp/fileserver/caddyfile.go @@ -27,6 +27,16 @@ func init() { httpcaddyfile.RegisterDirective("try_files", parseTryFiles) } +// parseCaddyfile parses the file_server directive. It enables the static file +// server and configures it with this syntax: +// +// file_server [<matcher>] [browse] { +// root <path> +// hide <files...> +// index <files...> +// browse [<template_file>] +// } +// func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) { var fsrv FileServer |