summaryrefslogtreecommitdiff
path: root/internal/config/defaults.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-02-10 15:46:36 +0100
committerLibravatar GitHub <noreply@github.com>2025-02-10 15:46:36 +0100
commit787bdc1488da476e54fb0daded061cf36ecf9010 (patch)
tree892cf4b9d42887ac703d8ee565be884c89b2d903 /internal/config/defaults.go
parent[bugfix] Fix POST to create account endpoint (#3767) (diff)
downloadgotosocial-787bdc1488da476e54fb0daded061cf36ecf9010.tar.xz
[feature] make account sign-up / backlog limits configurable (#3768)
Diffstat (limited to 'internal/config/defaults.go')
-rw-r--r--internal/config/defaults.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/config/defaults.go b/internal/config/defaults.go
index 157dfde0a..7f66e4209 100644
--- a/internal/config/defaults.go
+++ b/internal/config/defaults.go
@@ -68,10 +68,12 @@ var Defaults = Configuration{
InstanceSubscriptionsProcessFrom: "23:00", // 11pm,
InstanceSubscriptionsProcessEvery: 24 * time.Hour, // 1/day.
- AccountsRegistrationOpen: false,
- AccountsReasonRequired: true,
- AccountsAllowCustomCSS: false,
- AccountsCustomCSSLength: 10000,
+ AccountsRegistrationOpen: false,
+ AccountsReasonRequired: true,
+ AccountsRegistrationDailyLimit: 10,
+ AccountsRegistrationBacklogLimit: 20,
+ AccountsAllowCustomCSS: false,
+ AccountsCustomCSSLength: 10000,
MediaDescriptionMinChars: 0,
MediaDescriptionMaxChars: 1500,