aboutsummaryrefslogtreecommitdiff
path: root/weed/command/server.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2020-07-09 19:42:50 -0700
committerGitHub <noreply@github.com>2020-07-09 19:42:50 -0700
commitcf43edc67705d8b330b895b81b77bdda3ed4e17b (patch)
treeafa366c6b8a235bc7561116397cb54cae784646b /weed/command/server.go
parent1b680c06c1de27e6a3899c089ec354a9eb08ea44 (diff)
parent8c318470dd95b3fc24d39dc3cf253cc17b03ab39 (diff)
downloadseaweedfs-cf43edc67705d8b330b895b81b77bdda3ed4e17b.tar.xz
seaweedfs-cf43edc67705d8b330b895b81b77bdda3ed4e17b.zip
Merge pull request #1385 from yourchanges/master
Revert "remove fixJpgOrientation"
Diffstat (limited to 'weed/command/server.go')
-rw-r--r--weed/command/server.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/weed/command/server.go b/weed/command/server.go
index 443f041c5..8bc98b900 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -58,9 +58,9 @@ var (
volumeMinFreeSpacePercent = cmdServer.Flag.String("volume.minFreeSpacePercent", "1", "minimum free disk space (default to 1%). Low disk space will mark all volumes as ReadOnly.")
// pulseSeconds = cmdServer.Flag.Int("pulseSeconds", 5, "number of seconds between heartbeats")
- isStartingFiler = cmdServer.Flag.Bool("filer", false, "whether to start filer")
- isStartingS3 = cmdServer.Flag.Bool("s3", false, "whether to start S3 gateway")
- isStartingMsgBroker = cmdServer.Flag.Bool("msgBroker", false, "whether to start message broker")
+ isStartingFiler = cmdServer.Flag.Bool("filer", false, "whether to start filer")
+ isStartingS3 = cmdServer.Flag.Bool("s3", false, "whether to start S3 gateway")
+ isStartingMsgBroker = cmdServer.Flag.Bool("msgBroker", false, "whether to start message broker")
serverWhiteList []string
@@ -93,6 +93,7 @@ func init() {
serverOptions.v.port = cmdServer.Flag.Int("volume.port", 8080, "volume server http listen port")
serverOptions.v.publicPort = cmdServer.Flag.Int("volume.port.public", 0, "volume server public port")
serverOptions.v.indexType = cmdServer.Flag.String("volume.index", "memory", "Choose [memory|leveldb|leveldbMedium|leveldbLarge] mode for memory~performance balance.")
+ serverOptions.v.fixJpgOrientation = cmdServer.Flag.Bool("volume.images.fix.orientation", false, "Adjust jpg orientation when uploading.")
serverOptions.v.readRedirect = cmdServer.Flag.Bool("volume.read.redirect", true, "Redirect moved or non-local volumes.")
serverOptions.v.compactionMBPerSecond = cmdServer.Flag.Int("volume.compactionMBps", 0, "limit compaction speed in mega bytes per second")
serverOptions.v.fileSizeLimitMB = cmdServer.Flag.Int("volume.fileSizeLimitMB", 256, "limit file size to avoid out of memory")