2015-12-07 23:12:47 +01:00
|
|
|
|
/*
|
2019-04-09 20:39:42 +02:00
|
|
|
|
* MinIO Cloud Storage, (C) 2015, 2016, 2017, 2018 MinIO, Inc.
|
2015-12-07 23:12:47 +01:00
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
|
*
|
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
2016-08-19 01:23:42 +02:00
|
|
|
|
package cmd
|
2015-12-07 23:12:47 +01:00
|
|
|
|
|
2016-07-09 05:34:27 +02:00
|
|
|
|
import (
|
2016-11-11 16:18:44 +01:00
|
|
|
|
"crypto/x509"
|
2017-07-13 01:33:21 +02:00
|
|
|
|
"os"
|
2016-09-10 00:33:35 +02:00
|
|
|
|
"time"
|
|
|
|
|
|
2020-07-14 18:38:05 +02:00
|
|
|
|
"github.com/minio/minio-go/v7/pkg/set"
|
2018-05-11 21:02:30 +02:00
|
|
|
|
|
2016-11-23 03:18:22 +01:00
|
|
|
|
humanize "github.com/dustin/go-humanize"
|
2019-10-23 07:59:13 +02:00
|
|
|
|
"github.com/minio/minio/cmd/config/cache"
|
|
|
|
|
"github.com/minio/minio/cmd/config/compress"
|
2019-11-26 01:33:34 +01:00
|
|
|
|
"github.com/minio/minio/cmd/config/etcd/dns"
|
2019-10-23 07:59:13 +02:00
|
|
|
|
xldap "github.com/minio/minio/cmd/config/identity/ldap"
|
|
|
|
|
"github.com/minio/minio/cmd/config/identity/openid"
|
|
|
|
|
"github.com/minio/minio/cmd/config/policy/opa"
|
|
|
|
|
"github.com/minio/minio/cmd/config/storageclass"
|
2018-08-17 21:52:14 +02:00
|
|
|
|
"github.com/minio/minio/cmd/crypto"
|
2018-04-22 04:23:54 +02:00
|
|
|
|
xhttp "github.com/minio/minio/cmd/http"
|
2017-10-31 19:54:32 +01:00
|
|
|
|
"github.com/minio/minio/pkg/auth"
|
2020-07-08 04:04:29 +02:00
|
|
|
|
etcd "go.etcd.io/etcd/v3/clientv3"
|
2020-05-01 00:55:54 +02:00
|
|
|
|
|
2018-05-31 21:30:15 +02:00
|
|
|
|
"github.com/minio/minio/pkg/certs"
|
2019-12-22 07:35:50 +01:00
|
|
|
|
"github.com/minio/minio/pkg/event"
|
2019-06-27 07:41:12 +02:00
|
|
|
|
"github.com/minio/minio/pkg/pubsub"
|
2016-07-09 05:34:27 +02:00
|
|
|
|
)
|
config/main: Re-write config files - add to new config v3
- New config format.
```
{
"version": "3",
"address": ":9000",
"backend": {
"type": "fs",
"disk": "/path"
},
"credential": {
"accessKey": "WLGDGYAQYIGI833EV05A",
"secretKey": "BYvgJM101sHngl2uzjXS/OBF/aMxAN06JrJ3qJlF"
},
"region": "us-east-1",
"logger": {
"file": {
"enable": false,
"fileName": "",
"level": "error"
},
"syslog": {
"enable": false,
"address": "",
"level": "debug"
},
"console": {
"enable": true,
"level": "fatal"
}
}
}
```
New command lines in lieu of supporting XL.
Minio initialize filesystem backend.
~~~
$ minio init fs <path>
~~~
Minio initialize XL backend.
~~~
$ minio init xl <url1>...<url16>
~~~
For 'fs' backend it starts the server.
~~~
$ minio server
~~~
For 'xl' backend it waits for servers to join.
~~~
$ minio server
... [PROGRESS BAR] of servers connecting
~~~
Now on other servers execute 'join' and they connect.
~~~
....
minio join <url1> -- from <url2> && minio server
minio join <url1> -- from <url3> && minio server
...
...
minio join <url1> -- from <url16> && minio server
~~~
2016-02-13 00:27:10 +01:00
|
|
|
|
|
|
|
|
|
// minio configuration related constants.
|
|
|
|
|
const (
|
2020-05-17 17:46:23 +02:00
|
|
|
|
GlobalMinioDefaultPort = "9000"
|
2018-12-19 01:08:11 +01:00
|
|
|
|
|
2017-06-21 00:01:13 +02:00
|
|
|
|
globalMinioDefaultRegion = ""
|
|
|
|
|
// This is a sha256 output of ``arn:aws:iam::minio:user/admin``,
|
|
|
|
|
// this is kept in present form to be compatible with S3 owner ID
|
|
|
|
|
// requirements -
|
|
|
|
|
//
|
|
|
|
|
// ```
|
|
|
|
|
// The canonical user ID is the Amazon S3–only concept.
|
|
|
|
|
// It is 64-character obfuscated version of the account ID.
|
|
|
|
|
// ```
|
|
|
|
|
// http://docs.aws.amazon.com/AmazonS3/latest/dev/example-walkthroughs-managing-access-example4.html
|
|
|
|
|
globalMinioDefaultOwnerID = "02d6176db174dc93cb1b899f7c6078f08654445fe8cf1b6ce98d8855f66bdbf4"
|
2017-01-18 21:24:34 +01:00
|
|
|
|
globalMinioDefaultStorageClass = "STANDARD"
|
|
|
|
|
globalWindowsOSName = "windows"
|
2019-10-01 19:42:18 +02:00
|
|
|
|
globalMacOSName = "darwin"
|
2017-03-16 20:21:58 +01:00
|
|
|
|
globalMinioModeFS = "mode-server-fs"
|
2020-06-13 05:04:01 +02:00
|
|
|
|
globalMinioModeErasure = "mode-server-xl"
|
|
|
|
|
globalMinioModeDistErasure = "mode-server-distributed-xl"
|
2017-10-28 00:07:46 +02:00
|
|
|
|
globalMinioModeGatewayPrefix = "mode-gateway-"
|
2017-09-20 01:08:08 +02:00
|
|
|
|
|
2016-05-10 01:18:56 +02:00
|
|
|
|
// Add new global values here.
|
config/main: Re-write config files - add to new config v3
- New config format.
```
{
"version": "3",
"address": ":9000",
"backend": {
"type": "fs",
"disk": "/path"
},
"credential": {
"accessKey": "WLGDGYAQYIGI833EV05A",
"secretKey": "BYvgJM101sHngl2uzjXS/OBF/aMxAN06JrJ3qJlF"
},
"region": "us-east-1",
"logger": {
"file": {
"enable": false,
"fileName": "",
"level": "error"
},
"syslog": {
"enable": false,
"address": "",
"level": "debug"
},
"console": {
"enable": true,
"level": "fatal"
}
}
}
```
New command lines in lieu of supporting XL.
Minio initialize filesystem backend.
~~~
$ minio init fs <path>
~~~
Minio initialize XL backend.
~~~
$ minio init xl <url1>...<url16>
~~~
For 'fs' backend it starts the server.
~~~
$ minio server
~~~
For 'xl' backend it waits for servers to join.
~~~
$ minio server
... [PROGRESS BAR] of servers connecting
~~~
Now on other servers execute 'join' and they connect.
~~~
....
minio join <url1> -- from <url2> && minio server
minio join <url1> -- from <url3> && minio server
...
...
minio join <url1> -- from <url16> && minio server
~~~
2016-02-13 00:27:10 +01:00
|
|
|
|
)
|
|
|
|
|
|
2016-11-23 05:13:20 +01:00
|
|
|
|
const (
|
|
|
|
|
// Limit fields size (except file) to 1Mib since Policy document
|
|
|
|
|
// can reach that size according to https://aws.amazon.com/articles/1434
|
|
|
|
|
maxFormFieldSize = int64(1 * humanize.MiByte)
|
|
|
|
|
|
2017-02-02 19:45:00 +01:00
|
|
|
|
// Limit memory allocation to store multipart data
|
|
|
|
|
maxFormMemory = int64(5 * humanize.MiByte)
|
|
|
|
|
|
2017-09-07 20:16:45 +02:00
|
|
|
|
// The maximum allowed time difference between the incoming request
|
|
|
|
|
// date and server date during signature verification.
|
|
|
|
|
globalMaxSkewTime = 15 * time.Minute // 15 minutes skew allowed.
|
|
|
|
|
|
2019-01-05 23:16:43 +01:00
|
|
|
|
// GlobalMultipartExpiry - Expiry duration after which the multipart uploads are deemed stale.
|
2019-03-25 21:41:05 +01:00
|
|
|
|
GlobalMultipartExpiry = time.Hour * 24 * 3 // 3 days.
|
2019-01-05 23:16:43 +01:00
|
|
|
|
// GlobalMultipartCleanupInterval - Cleanup interval when the stale multipart cleanup is initiated.
|
|
|
|
|
GlobalMultipartCleanupInterval = time.Hour * 24 // 24 hrs.
|
|
|
|
|
|
2019-07-19 22:20:33 +02:00
|
|
|
|
// GlobalServiceExecutionInterval - Executes the Lifecycle events.
|
|
|
|
|
GlobalServiceExecutionInterval = time.Hour * 24 // 24 hrs.
|
|
|
|
|
|
2018-10-09 23:00:01 +02:00
|
|
|
|
// Refresh interval to update in-memory iam config cache.
|
|
|
|
|
globalRefreshIAMInterval = 5 * time.Minute
|
2018-05-04 20:16:14 +02:00
|
|
|
|
|
|
|
|
|
// Limit of location constraint XML for unauthenticted PUT bucket operations.
|
|
|
|
|
maxLocationConstraintSize = 3 * humanize.MiByte
|
2020-02-05 10:42:34 +01:00
|
|
|
|
|
|
|
|
|
// Maximum size of default bucket encryption configuration allowed
|
|
|
|
|
maxBucketSSEConfigSize = 1 * humanize.MiByte
|
2020-06-20 15:36:44 +02:00
|
|
|
|
|
|
|
|
|
// diskFillFraction is the fraction of a disk we allow to be filled.
|
|
|
|
|
diskFillFraction = 0.95
|
2016-11-23 05:13:20 +01:00
|
|
|
|
)
|
|
|
|
|
|
2018-12-19 01:08:11 +01:00
|
|
|
|
var globalCLIContext = struct {
|
2019-05-09 03:35:40 +02:00
|
|
|
|
JSON, Quiet bool
|
|
|
|
|
Anonymous bool
|
|
|
|
|
Addr string
|
|
|
|
|
StrictS3Compat bool
|
2018-12-19 01:08:11 +01:00
|
|
|
|
}{}
|
|
|
|
|
|
2016-03-25 01:20:49 +01:00
|
|
|
|
var (
|
2017-01-17 02:05:00 +01:00
|
|
|
|
// Indicates if the running minio server is distributed setup.
|
2020-06-13 05:04:01 +02:00
|
|
|
|
globalIsDistErasure = false
|
2016-11-28 21:15:36 +01:00
|
|
|
|
|
2017-01-23 09:32:55 +01:00
|
|
|
|
// Indicates if the running minio server is an erasure-code backend.
|
2020-06-13 05:04:01 +02:00
|
|
|
|
globalIsErasure = false
|
2017-01-23 09:32:55 +01:00
|
|
|
|
|
2019-06-03 20:06:13 +02:00
|
|
|
|
// Indicates if the running minio is in gateway mode.
|
|
|
|
|
globalIsGateway = false
|
|
|
|
|
|
2019-08-14 20:43:43 +02:00
|
|
|
|
// Name of gateway server, e.g S3, GCS, Azure, etc
|
|
|
|
|
globalGatewayName = ""
|
|
|
|
|
|
2017-02-27 23:59:53 +01:00
|
|
|
|
// This flag is set to 'true' by default
|
2019-10-23 07:59:13 +02:00
|
|
|
|
globalBrowserEnabled = true
|
2017-05-25 06:09:23 +02:00
|
|
|
|
|
2017-12-15 21:33:42 +01:00
|
|
|
|
// This flag is set to 'true' when MINIO_UPDATE env is set to 'off'. Default is false.
|
|
|
|
|
globalInplaceUpdateDisabled = false
|
|
|
|
|
|
2017-04-09 19:44:10 +02:00
|
|
|
|
// This flag is set to 'us-east-1' by default
|
|
|
|
|
globalServerRegion = globalMinioDefaultRegion
|
|
|
|
|
|
2019-04-09 20:39:42 +02:00
|
|
|
|
// MinIO local server address (in `host:port` format)
|
2016-10-12 10:03:50 +02:00
|
|
|
|
globalMinioAddr = ""
|
2019-04-09 20:39:42 +02:00
|
|
|
|
// MinIO default port, can be changed through command line.
|
2020-05-17 17:46:23 +02:00
|
|
|
|
globalMinioPort = GlobalMinioDefaultPort
|
2016-10-18 21:49:24 +02:00
|
|
|
|
// Holds the host that was passed using --address
|
|
|
|
|
globalMinioHost = ""
|
2020-04-27 15:25:05 +02:00
|
|
|
|
// Holds the possible host endpoint.
|
|
|
|
|
globalMinioEndpoint = ""
|
2016-12-29 12:13:51 +01:00
|
|
|
|
|
2018-08-15 06:41:47 +02:00
|
|
|
|
// globalConfigSys server config system.
|
|
|
|
|
globalConfigSys *ConfigSys
|
|
|
|
|
|
2019-12-22 07:35:50 +01:00
|
|
|
|
globalNotificationSys *NotificationSys
|
|
|
|
|
globalConfigTargetList *event.TargetList
|
2020-03-14 08:01:15 +01:00
|
|
|
|
// globalEnvTargetList has list of targets configured via env.
|
|
|
|
|
globalEnvTargetList *event.TargetList
|
|
|
|
|
|
2020-05-19 22:53:54 +02:00
|
|
|
|
globalBucketMetadataSys *BucketMetadataSys
|
|
|
|
|
globalPolicySys *PolicySys
|
|
|
|
|
globalIAMSys *IAMSys
|
2016-10-12 10:03:50 +02:00
|
|
|
|
|
2020-07-31 04:55:22 +02:00
|
|
|
|
globalLifecycleSys *LifecycleSys
|
|
|
|
|
globalBucketSSEConfigSys *BucketSSEConfigSys
|
|
|
|
|
globalBucketTargetSys *BucketTargetSys
|
2020-06-04 23:58:34 +02:00
|
|
|
|
// globalAPIConfig controls S3 API requests throttling,
|
|
|
|
|
// healthcheck readiness deadlines and cors settings.
|
|
|
|
|
globalAPIConfig apiConfig
|
2020-04-14 21:46:37 +02:00
|
|
|
|
|
2019-10-23 07:59:13 +02:00
|
|
|
|
globalStorageClass storageclass.Config
|
|
|
|
|
globalLDAPConfig xldap.Config
|
|
|
|
|
globalOpenIDConfig openid.Config
|
|
|
|
|
|
2016-11-11 16:18:44 +01:00
|
|
|
|
// CA root certificates, a nil value means system certs pool will be used
|
|
|
|
|
globalRootCAs *x509.CertPool
|
|
|
|
|
|
2017-01-11 22:59:51 +01:00
|
|
|
|
// IsSSL indicates if the server is configured with SSL.
|
|
|
|
|
globalIsSSL bool
|
|
|
|
|
|
2018-05-31 21:30:15 +02:00
|
|
|
|
globalTLSCerts *certs.Certs
|
2017-07-13 01:33:21 +02:00
|
|
|
|
|
2018-04-22 04:23:54 +02:00
|
|
|
|
globalHTTPServer *xhttp.Server
|
2017-07-13 01:33:21 +02:00
|
|
|
|
globalHTTPServerErrorCh = make(chan error)
|
|
|
|
|
globalOSSignalCh = make(chan os.Signal, 1)
|
|
|
|
|
|
2019-06-09 00:54:41 +02:00
|
|
|
|
// global Trace system to send HTTP request/response logs to
|
|
|
|
|
// registered listeners
|
2019-06-27 07:41:12 +02:00
|
|
|
|
globalHTTPTrace = pubsub.New()
|
2017-10-25 04:04:51 +02:00
|
|
|
|
|
2019-12-12 19:01:23 +01:00
|
|
|
|
// global Listen system to send S3 API events to registered listeners
|
|
|
|
|
globalHTTPListen = pubsub.New()
|
|
|
|
|
|
2019-09-03 20:10:48 +02:00
|
|
|
|
// global console system to send console logs to
|
|
|
|
|
// registered listeners
|
|
|
|
|
globalConsoleSys *HTTPConsoleLoggerSys
|
|
|
|
|
|
2019-11-20 02:42:27 +01:00
|
|
|
|
globalEndpoints EndpointZones
|
2017-01-23 09:32:55 +01:00
|
|
|
|
|
2017-02-06 18:29:53 +01:00
|
|
|
|
// Global server's network statistics
|
|
|
|
|
globalConnStats = newConnStats()
|
2017-02-08 09:13:02 +01:00
|
|
|
|
|
2017-02-06 18:29:53 +01:00
|
|
|
|
// Global HTTP request statisitics
|
|
|
|
|
globalHTTPStats = newHTTPStats()
|
|
|
|
|
|
2020-03-18 00:37:28 +01:00
|
|
|
|
// Time when the server is started
|
|
|
|
|
globalBootTime = UTCNow()
|
2017-02-08 09:13:02 +01:00
|
|
|
|
|
2019-10-30 08:04:39 +01:00
|
|
|
|
globalActiveCred auth.Credentials
|
|
|
|
|
|
2020-03-17 18:36:13 +01:00
|
|
|
|
// Hold the old server credentials passed by the environment
|
|
|
|
|
globalOldCred auth.Credentials
|
|
|
|
|
|
2019-11-01 23:53:16 +01:00
|
|
|
|
// Indicates if config is to be encrypted
|
|
|
|
|
globalConfigEncrypted bool
|
|
|
|
|
|
2018-02-02 19:17:13 +01:00
|
|
|
|
globalPublicCerts []*x509.Certificate
|
2017-11-15 01:56:24 +01:00
|
|
|
|
|
2019-02-23 04:18:01 +01:00
|
|
|
|
globalDomainNames []string // Root domains for virtual host style requests
|
2019-04-09 20:39:42 +02:00
|
|
|
|
globalDomainIPs set.StringSet // Root domain IP address(s) for a distributed MinIO deployment
|
2017-08-31 20:29:22 +02:00
|
|
|
|
|
2020-05-13 17:15:26 +02:00
|
|
|
|
globalObjectTimeout = newDynamicTimeout( /*1*/ 10*time.Minute /*10*/, 600*time.Second) // timeout for Object API related ops
|
|
|
|
|
globalOperationTimeout = newDynamicTimeout(10*time.Minute /*30*/, 600*time.Second) // default timeout for general ops
|
|
|
|
|
globalHealingTimeout = newDynamicTimeout(30*time.Minute /*1*/, 30*time.Minute) // timeout for healing related ops
|
2016-03-25 01:20:49 +01:00
|
|
|
|
|
2020-05-08 22:44:44 +02:00
|
|
|
|
globalBucketObjectLockSys *BucketObjectLockSys
|
|
|
|
|
globalBucketQuotaSys *BucketQuotaSys
|
2020-06-13 05:04:01 +02:00
|
|
|
|
globalBucketVersioningSys *BucketVersioningSys
|
2020-05-01 00:55:54 +02:00
|
|
|
|
|
2018-03-28 23:14:06 +02:00
|
|
|
|
// Disk cache drives
|
2019-10-23 07:59:13 +02:00
|
|
|
|
globalCacheConfig cache.Config
|
2018-02-03 03:18:52 +01:00
|
|
|
|
|
2019-08-23 19:13:22 +02:00
|
|
|
|
// Initialized KMS configuration for disk cache
|
|
|
|
|
globalCacheKMS crypto.KMS
|
2019-10-23 07:59:13 +02:00
|
|
|
|
|
2018-02-03 03:18:52 +01:00
|
|
|
|
// Allocated etcd endpoint for config and bucket DNS.
|
2018-07-12 23:12:40 +02:00
|
|
|
|
globalEtcdClient *etcd.Client
|
2018-02-03 03:18:52 +01:00
|
|
|
|
|
2019-12-29 17:56:45 +01:00
|
|
|
|
// Is set to true when Bucket federation is requested
|
|
|
|
|
// and is 'true' when etcdConfig.PathPrefix is empty
|
|
|
|
|
globalBucketFederation bool
|
|
|
|
|
|
2018-02-03 03:18:52 +01:00
|
|
|
|
// Allocated DNS config wrapper over etcd client.
|
2020-07-20 21:28:48 +02:00
|
|
|
|
globalDNSConfig dns.Store
|
2018-03-28 23:14:06 +02:00
|
|
|
|
|
2019-01-05 23:16:43 +01:00
|
|
|
|
// GlobalKMS initialized KMS configuration
|
|
|
|
|
GlobalKMS crypto.KMS
|
2018-09-28 05:36:17 +02:00
|
|
|
|
|
2018-12-14 22:35:48 +01:00
|
|
|
|
// Auto-Encryption, if enabled, turns any non-SSE-C request
|
|
|
|
|
// into an SSE-S3 request. If enabled a valid, non-empty KMS
|
|
|
|
|
// configuration must be present.
|
|
|
|
|
globalAutoEncryption bool
|
|
|
|
|
|
2019-09-26 08:08:24 +02:00
|
|
|
|
// Is compression enabled?
|
2019-10-23 07:59:13 +02:00
|
|
|
|
globalCompressConfig compress.Config
|
2018-09-28 05:36:17 +02:00
|
|
|
|
|
|
|
|
|
// Some standard object extensions which we strictly dis-allow for compression.
|
2019-09-26 08:08:24 +02:00
|
|
|
|
standardExcludeCompressExtensions = []string{".gz", ".bz2", ".rar", ".zip", ".7z", ".xz", ".mp4", ".mkv", ".mov"}
|
2018-09-28 05:36:17 +02:00
|
|
|
|
|
|
|
|
|
// Some standard content-types which we strictly dis-allow for compression.
|
|
|
|
|
standardExcludeCompressContentTypes = []string{"video/*", "audio/*", "application/zip", "application/x-gzip", "application/x-zip-compressed", " application/x-compress", "application/x-spoon"}
|
|
|
|
|
|
2018-10-09 23:00:01 +02:00
|
|
|
|
// Authorization validators list.
|
2019-10-04 19:35:33 +02:00
|
|
|
|
globalOpenIDValidators *openid.Validators
|
2018-10-09 23:00:01 +02:00
|
|
|
|
|
|
|
|
|
// OPA policy system.
|
2019-10-23 07:59:13 +02:00
|
|
|
|
globalPolicyOPA *opa.Opa
|
2018-10-09 23:00:01 +02:00
|
|
|
|
|
2018-11-19 23:47:03 +01:00
|
|
|
|
// Deployment ID - unique per deployment
|
|
|
|
|
globalDeploymentID string
|
|
|
|
|
|
2019-01-05 23:16:43 +01:00
|
|
|
|
// GlobalGatewaySSE sse options
|
|
|
|
|
GlobalGatewaySSE gatewaySSE
|
|
|
|
|
|
2019-10-28 18:27:49 +01:00
|
|
|
|
globalAllHealState *allHealState
|
|
|
|
|
|
2019-06-09 07:14:07 +02:00
|
|
|
|
// The always present healing routine ready to heal objects
|
2019-10-28 18:27:49 +01:00
|
|
|
|
globalBackgroundHealRoutine *healRoutine
|
|
|
|
|
globalBackgroundHealState *allHealState
|
2019-06-09 07:14:07 +02:00
|
|
|
|
|
2019-10-31 07:39:09 +01:00
|
|
|
|
// Only enabled when one of the sub-systems fail
|
|
|
|
|
// to initialize, this allows for administrators to
|
|
|
|
|
// fix the system.
|
|
|
|
|
globalSafeMode bool
|
|
|
|
|
|
2020-05-13 04:24:59 +02:00
|
|
|
|
// If writes to FS backend should be O_SYNC.
|
|
|
|
|
globalFSOSync bool
|
2020-05-24 02:38:39 +02:00
|
|
|
|
|
2020-07-03 20:53:03 +02:00
|
|
|
|
globalProxyEndpoints []ProxyEndpoint
|
2018-02-03 03:18:52 +01:00
|
|
|
|
// Add new variable global values here.
|
2016-09-10 00:33:35 +02:00
|
|
|
|
)
|
|
|
|
|
|
2017-05-25 06:09:23 +02:00
|
|
|
|
// Returns minio global information, as a key value map.
|
|
|
|
|
// returned list of global values is not an exhaustive
|
|
|
|
|
// list. Feel free to add new relevant fields.
|
|
|
|
|
func getGlobalInfo() (globalInfo map[string]interface{}) {
|
|
|
|
|
globalInfo = map[string]interface{}{
|
2019-10-23 07:59:13 +02:00
|
|
|
|
"serverRegion": globalServerRegion,
|
2020-05-02 08:55:53 +02:00
|
|
|
|
"domains": globalDomainNames,
|
2017-05-25 06:09:23 +02:00
|
|
|
|
// Add more relevant global settings here.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return globalInfo
|
|
|
|
|
}
|