feat: add core.portal_name required config to be used for communication
This commit is contained in:
parent
81e540c2ce
commit
3da1ae3e5f
|
@ -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 {
|
||||||
|
|
|
@ -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"`
|
||||||
|
|
Loading…
Reference in New Issue