summaryrefslogtreecommitdiff
path: root/internal/config
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-09-18 01:04:26 +0300
committerPaul Buetow <paul@buetow.org>2024-09-18 01:04:26 +0300
commit5263e61d5667009e7a7ac13014cec73ccbd0e20a (patch)
tree64187b679f0b0da34840c3d77d5bde441cea3fb0 /internal/config
parent279ee9e1026f74f923766286b767d4df3901b82f (diff)
some stuff
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/server/server.go3
1 files changed, 2 insertions, 1 deletions
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 {