Fixed default upload dir path in progs as well.
This commit is contained in:
parent
860d719cdd
commit
2abf5a9d7f
@ -10,7 +10,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var uploadDir *string = flag.String("upload-dir", "/srv/uploads", "path to a directory where uploaded files are stored")
|
var uploadDir *string = flag.String("upload-dir", "/srv/upload", "path to a directory where uploaded files are stored")
|
||||||
var keepFileForHours *int64 = flag.Int64("keep-for", 36, "keep files for this much hours")
|
var keepFileForHours *int64 = flag.Int64("keep-for", 36, "keep files for this much hours")
|
||||||
var showVersion *bool = flag.Bool("v", false, "show version")
|
var showVersion *bool = flag.Bool("v", false, "show version")
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var listenAddress *string = flag.String("listen", "/var/run/dwelling-upload/sock", "listen address (ip:port|unix_path)")
|
var listenAddress *string = flag.String("listen", "/var/run/dwelling-upload/sock", "listen address (ip:port|unix_path)")
|
||||||
var uploadDir *string = flag.String("upload-dir", "/srv/uploads", "path to a directory where uploaded files are stored")
|
var uploadDir *string = flag.String("upload-dir", "/srv/upload", "path to a directory where uploaded files are stored")
|
||||||
var keepFileForHours *int = flag.Int("keep-for", 36, "keep files for this much hours")
|
var keepFileForHours *int = flag.Int("keep-for", 36, "keep files for this much hours")
|
||||||
var limitStorage *int64 = flag.Int64("storage", 102400, "storage size in MiB for uploads")
|
var limitStorage *int64 = flag.Int64("storage", 102400, "storage size in MiB for uploads")
|
||||||
var limitFileSize *int64 = flag.Int64("file-size", 128, "max. size in MiB for uploaded files")
|
var limitFileSize *int64 = flag.Int64("file-size", 128, "max. size in MiB for uploaded files")
|
||||||
|
Loading…
Reference in New Issue
Block a user