1
0
Fork 0

In upload service flags was renamed.

This commit is contained in:
Alexander Andreev 2023-08-01 16:43:41 +04:00
parent e430f0bfc9
commit 5590b0ad71
Signed by: Arav
GPG Key ID: D22A817D95815393
1 changed files with 4 additions and 4 deletions

View File

@ -21,10 +21,10 @@ import (
var (
listenAddress *string = flag.String("listen", "/var/run/dwelling-upload/sock", "listen address (ip:port|unix_path)")
uploadDir *string = flag.String("upload-dir", "/srv/upload", "directory where uploaded files are stored")
keepForHours *int = flag.Int("keep-for", 36, "keep files for this much hours")
uploadDir *string = flag.String("dir", "/srv/upload", "directory where uploaded files are stored")
expiry *int = flag.Int("expiry", 36, "keep files for this much hours")
storageSize *int64 = flag.Int64("storage", 102400, "storage size in MiB for uploads")
fileSizeLimit *int64 = flag.Int64("file-size", 128, "max. size in MiB for files")
fileSize *int64 = flag.Int64("file", 128, "max. size in MiB for files")
showVersion *bool = flag.Bool("v", false, "show version")
)
@ -91,7 +91,7 @@ func main() {
}
hand := http.NewUploadHandlers(logFile, *uploadDir, &uploadDirSize, string(hashSalt),
*keepForHours, *storageSize, *fileSizeLimit)
*expiry, *storageSize, *fileSize)
r := httpr.New()