|
@ -20,6 +20,7 @@ var Config struct { |
|
|
filesDir string |
|
|
filesDir string |
|
|
metaDir string |
|
|
metaDir string |
|
|
noLogs bool |
|
|
noLogs bool |
|
|
|
|
|
allowHotlink bool |
|
|
siteName string |
|
|
siteName string |
|
|
siteURL string |
|
|
siteURL string |
|
|
} |
|
|
} |
|
@ -95,6 +96,8 @@ func main() { |
|
|
"path to metadata directory") |
|
|
"path to metadata directory") |
|
|
flag.BoolVar(&Config.noLogs, "nologs", false, |
|
|
flag.BoolVar(&Config.noLogs, "nologs", false, |
|
|
"remove stdout output for each request") |
|
|
"remove stdout output for each request") |
|
|
|
|
|
flag.BoolVar(&Config.allowHotlink, "allowhotlink", false, |
|
|
|
|
|
"Allow hotlinking of files") |
|
|
flag.StringVar(&Config.siteName, "sitename", "linx", |
|
|
flag.StringVar(&Config.siteName, "sitename", "linx", |
|
|
"name of the site") |
|
|
"name of the site") |
|
|
flag.StringVar(&Config.siteURL, "siteurl", "http://"+Config.bind+"/", |
|
|
flag.StringVar(&Config.siteURL, "siteurl", "http://"+Config.bind+"/", |
|
|