mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:57:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
49
apps/api/internal/config/systemdefaults/system_defaults.go
Normal file
49
apps/api/internal/config/systemdefaults/system_defaults.go
Normal file
@@ -0,0 +1,49 @@
|
||||
package systemdefaults
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/zitadel/zitadel/internal/crypto"
|
||||
)
|
||||
|
||||
type SystemDefaults struct {
|
||||
SecretGenerators SecretGenerators
|
||||
PasswordHasher crypto.HashConfig
|
||||
SecretHasher crypto.HashConfig
|
||||
Multifactors MultifactorConfig
|
||||
DomainVerification DomainVerification
|
||||
Notifications Notifications
|
||||
KeyConfig KeyConfig
|
||||
DefaultQueryLimit uint64
|
||||
MaxQueryLimit uint64
|
||||
MaxIdPIntentLifetime time.Duration
|
||||
}
|
||||
|
||||
type SecretGenerators struct {
|
||||
MachineKeySize uint32
|
||||
ApplicationKeySize uint32
|
||||
}
|
||||
|
||||
type MultifactorConfig struct {
|
||||
OTP OTPConfig
|
||||
}
|
||||
|
||||
type OTPConfig struct {
|
||||
Issuer string
|
||||
}
|
||||
|
||||
type DomainVerification struct {
|
||||
VerificationGenerator crypto.GeneratorConfig
|
||||
}
|
||||
|
||||
type Notifications struct {
|
||||
FileSystemPath string
|
||||
}
|
||||
|
||||
type KeyConfig struct {
|
||||
Size int
|
||||
PrivateKeyLifetime time.Duration
|
||||
PublicKeyLifetime time.Duration
|
||||
CertificateSize int
|
||||
CertificateLifetime time.Duration
|
||||
}
|
Reference in New Issue
Block a user