optimize config display && unused old config
This commit is contained in:
parent
30da719d57
commit
8736847912
6 changed files with 39 additions and 17 deletions
16
tmpl/.file_server
Normal file
16
tmpl/.file_server
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{{.Domain}} {
|
||||
root * {{.FileDirPath}}
|
||||
file_server{{if .EnableBrowser}} browse{{end}}
|
||||
{{- range .Headers}}
|
||||
header {{.}}
|
||||
{{- end}}
|
||||
{{- if .EnableLog}}
|
||||
import log {{.LogDomain}}
|
||||
{{- end}}
|
||||
{{- if .EnableErrorPage}}
|
||||
import error_page
|
||||
{{- end}}
|
||||
{{- if .EnableEncode}}
|
||||
import encode
|
||||
{{- end}}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue