Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Param ¶
type Param struct { Root string EmptyRoot bool PrefixUrls []string ForceDirSlash int DefaultSort string DirIndexes []string // value: [url-path, fs-path] Aliases [][2]string GlobalRestrictAccess []string // value: [restrict-path, allow-hosts...] RestrictAccessUrls [][]string RestrictAccessDirs [][]string // value: [name, value] GlobalHeaders [][2]string // value: [path, (name, value)...] HeadersUrls [][]string HeadersDirs [][]string GlobalUpload bool UploadUrls []string UploadDirs []string GlobalMkdir bool MkdirUrls []string MkdirDirs []string GlobalDelete bool DeleteUrls []string DeleteDirs []string GlobalArchive bool ArchiveUrls []string ArchiveDirs []string GlobalCors bool CorsUrls []string CorsDirs []string GlobalAuth bool AuthUrls []string AuthDirs []string // value: [username, password] UsersPlain [][2]string UsersBase64 [][2]string UsersMd5 [][2]string UsersSha1 [][2]string UsersSha256 [][2]string UsersSha512 [][2]string UserMatchCase bool Certificates []tls.Certificate Listens []string ListensPlain []string ListensTLS []string HostNames []string Theme string ThemeDir string GlobalHsts bool GlobalHttps bool HttpsPort string Shows []string ShowDirs []string ShowFiles []string Hides []string HideDirs []string HideFiles []string AccessLog string ErrorLog string }
func ParseFromArgs ¶ added in v1.15.1
func ParseFromCli ¶ added in v1.15.1
Click to show internal directories.
Click to hide internal directories.