From 5263e61d5667009e7a7ac13014cec73ccbd0e20a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 18 Sep 2024 01:04:26 +0300 Subject: some stuff --- internal/config/server/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/config') diff --git a/internal/config/server/server.go b/internal/config/server/server.go index 209493b..16da14c 100644 --- a/internal/config/server/server.go +++ b/internal/config/server/server.go @@ -20,6 +20,7 @@ type ServerConfig struct { MergeIntervalS int `json:"MergeInterval,omitempty"` ScheduleIntervalS int `json:"ScheduleInterval,omitempty"` SocialPlatformsEnabled []string `json:"SocialPlatformsEnabled,omitempty"` + PostsPerWeek int `json:"PostsPerWeek,omitempty"` Secrets SecretsConfig `json:"Secrets,omitempty"` } @@ -44,7 +45,7 @@ func New(configFile, secretsFile string) (ServerConfig, error) { conf.EmailFrom = config.Str("GOS_EMAIL_FROM", conf.EmailFrom) conf.SocialPlatformsEnabled = config.StrSlice("GOS_SOCIAL_PLATFORMS_ENABLED", []string{types.Mastodon, types.LinkedIn, types.Textfile}) - + conf.PostsPerWeek = config.Int("GOS_POSTS_PER_WEEK", conf.PostsPerWeek, 2) conf.SMTPServer = config.Str("GOS_SMTP_SERVER", conf.SMTPServer, func() string { hostname, err := os.Hostname() if err != nil { -- cgit v1.2.3