mirror of https://github.com/minio/minio.git
chore: cleanup
This commit is contained in:
parent
a065176ca9
commit
4ac0a75c1e
|
@ -819,7 +819,7 @@ func GetHelp(subSys, key string, envOnly bool) (Help, error) {
|
|||
func newServerConfig() config.Config {
|
||||
srvCfg := config.New()
|
||||
// For fresh installs, apply secure API defaults
|
||||
applySECUREAPIDefaults(srvCfg)
|
||||
applyFreshInstallAPIDefaults(srvCfg)
|
||||
return srvCfg
|
||||
}
|
||||
|
||||
|
|
|
@ -148,9 +148,9 @@ func saveServerConfig(ctx context.Context, objAPI ObjectLayer, cfg interface{})
|
|||
return saveConfig(ctx, objAPI, configFile, data)
|
||||
}
|
||||
|
||||
// applySECUREAPIDefaults updates API configuration defaults for fresh installations
|
||||
// applyFreshInstallAPIDefaults updates API configuration defaults for fresh installations
|
||||
// to use secure CORS settings (disables credentials with wildcard origins).
|
||||
func applySECUREAPIDefaults(srvCfg config.Config) {
|
||||
func applyFreshInstallAPIDefaults(srvCfg config.Config) {
|
||||
// For fresh installs, use secure API defaults
|
||||
srvCfg[config.APISubSys][config.Default] = api.GetSecureDefaultKVS()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue