add system config (#71)

This commit is contained in:
Fabi
2020-04-23 10:43:39 +02:00
committed by GitHub
parent 8464cfa4fe
commit ff11cdba40
8 changed files with 42 additions and 30 deletions

View File

@@ -3,6 +3,7 @@ package main
import (
"context"
"flag"
sd "github.com/caos/zitadel/internal/config/systemdefaults"
"github.com/caos/logging"
@@ -23,9 +24,10 @@ type Config struct {
Admin admin.Config
Console console.Config
Log logging.Config
Tracing tracing.TracingConfig
AuthZ authz.Config
Log logging.Config
Tracing tracing.TracingConfig
AuthZ authz.Config
SystemDefaults sd.SystemDefaults
}
func main() {
@@ -44,10 +46,10 @@ func main() {
ctx := context.Background()
if *managementEnabled {
management.Start(ctx, conf.Mgmt, conf.AuthZ)
management.Start(ctx, conf.Mgmt, conf.AuthZ, conf.SystemDefaults)
}
if *authEnabled {
auth.Start(ctx, conf.Auth, conf.AuthZ)
auth.Start(ctx, conf.Auth, conf.AuthZ, conf.SystemDefaults)
}
if *loginEnabled {
err = login.Start(ctx, conf.Login)

View File

@@ -31,13 +31,6 @@ Mgmt:
Type: 'fastcache'
Config:
MaxCacheSizeInByte: 10485760 #10mb
PasswordSaltCost: 14
ClientSecretGenerator:
Length: 64
IncludeLowerLetters: true
IncludeUpperLetters: true
IncludeDigits: true
IncludeSymbols: true
Auth:

View File

@@ -0,0 +1,8 @@
SecretGenerators:
PasswordSaltCost: 14
ClientSecretGenerator:
Length: 64
IncludeLowerLetters: true
IncludeUpperLetters: true
IncludeDigits: true
IncludeSymbols: true