feat: add core.portal_name required config to be used for communication

This commit is contained in:
Derrick Hammer 2024-02-26 07:32:46 -05:00
parent 81e540c2ce
commit 3da1ae3e5f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ func initCheckRequiredConfig(logger *zap.Logger, config *config.Manager) error {
"core.mail.host", "core.mail.host",
"core.mail.username", "core.mail.username",
"core.mail.password", "core.mail.password",
"core.portal_name",
} }
for _, key := range required { for _, key := range required {

View File

@ -3,6 +3,7 @@ package config
type CoreConfig struct { type CoreConfig struct {
DB DatabaseConfig `mapstructure:"db"` DB DatabaseConfig `mapstructure:"db"`
Domain string `mapstructure:"domain"` Domain string `mapstructure:"domain"`
PortalName string `mapstructure:"portal_name"`
ExternalPort uint `mapstructure:"external_port"` ExternalPort uint `mapstructure:"external_port"`
Identity string `mapstructure:"identity"` Identity string `mapstructure:"identity"`
Log LogConfig `mapstructure:"log"` Log LogConfig `mapstructure:"log"`