Merge branch 'main' of gitlab.com:mstarongitlab/linstrom

This commit is contained in:
Melody Becker 2024-09-15 12:25:45 +02:00
commit 71beed7eb3
86 changed files with 34935 additions and 155 deletions

View file

@ -56,12 +56,25 @@ type ConfigStorage struct {
MaxInMemoryCacheSize int64 `toml:"max_in_memory_cache_size"`
}
type ConfigMail struct {
Host string `toml:"host"`
Port int `toml:"port"`
Username string `toml:"username"`
Password string `toml:"password"`
EncryptionOverwrite *string `toml:"encryption_overwrite,omitempty"`
KeepAliveOverwrite *bool `toml:"keep_alive_overwrite,omitempty"`
ConnectTimeoutSecondsOverwrite *int `toml:"connect_timeout_seconds_overwrite,omitempty"`
SendTimeoutSecondsOverwrite *int `toml:"send_timeout_seconds_overwrite,omitempty"`
TemplateOverwriteDirectory *string `toml:"template_overwrite_directory,omitempty"`
}
type Config struct {
General ConfigGeneral `toml:"general"`
SSL ConfigSSL `toml:"ssl"`
Admin ConfigAdmin `toml:"admin"`
Webauthn ConfigWebAuthn `toml:"webauthn"`
Storage ConfigStorage `toml:"storage"`
Mail ConfigMail `toml:"mail"`
}
var GlobalConfig Config