mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 18:07:31 +00:00
add system config (#71)
This commit is contained in:
@@ -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)
|
||||
|
@@ -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:
|
||||
|
8
cmd/zitadel/system-defaults.yaml
Normal file
8
cmd/zitadel/system-defaults.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
SecretGenerators:
|
||||
PasswordSaltCost: 14
|
||||
ClientSecretGenerator:
|
||||
Length: 64
|
||||
IncludeLowerLetters: true
|
||||
IncludeUpperLetters: true
|
||||
IncludeDigits: true
|
||||
IncludeSymbols: true
|
Reference in New Issue
Block a user