1
0
Fork 0

Fixed default upload dir path in progs as well.

This commit is contained in:
Alexander Andreev 2023-05-26 12:51:32 +04:00
parent 860d719cdd
commit 2abf5a9d7f
Signed by: Arav
GPG Key ID: D22A817D95815393
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import (
"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 showVersion *bool = flag.Bool("v", false, "show version")

View File

@ -20,7 +20,7 @@ import (
)
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 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")