|
@ -29,6 +29,7 @@ var Config struct { |
|
|
contentSecurityPolicy string |
|
|
contentSecurityPolicy string |
|
|
fileContentSecurityPolicy string |
|
|
fileContentSecurityPolicy string |
|
|
xFrameOptions string |
|
|
xFrameOptions string |
|
|
|
|
|
maxSize int64 |
|
|
noLogs bool |
|
|
noLogs bool |
|
|
allowHotlink bool |
|
|
allowHotlink bool |
|
|
fastcgi bool |
|
|
fastcgi bool |
|
@ -129,6 +130,8 @@ func main() { |
|
|
"name of the site") |
|
|
"name of the site") |
|
|
flag.StringVar(&Config.siteURL, "siteurl", "http://"+Config.bind+"/", |
|
|
flag.StringVar(&Config.siteURL, "siteurl", "http://"+Config.bind+"/", |
|
|
"site base url (including trailing slash)") |
|
|
"site base url (including trailing slash)") |
|
|
|
|
|
flag.Int64Var(&Config.maxSize, "maxsize", 4*1024*1024*1024, |
|
|
|
|
|
"maximum upload file size in bytes (default 4GB)") |
|
|
flag.StringVar(&Config.certFile, "certfile", "", |
|
|
flag.StringVar(&Config.certFile, "certfile", "", |
|
|
"path to ssl certificate (for https)") |
|
|
"path to ssl certificate (for https)") |
|
|
flag.StringVar(&Config.keyFile, "keyfile", "", |
|
|
flag.StringVar(&Config.keyFile, "keyfile", "", |
|
|