diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-21 19:01:52 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-21 19:01:52 -0700 |
commit | e78c79b83213efc40bffc5ef42071fedb85d6061 (patch) | |
tree | a9109f40bc8968c8fe9584b21dd4194d8a49c49c /model | |
parent | cae5dbd245f05e9441156a3918ef796d92ecf331 (diff) | |
download | chat-e78c79b83213efc40bffc5ef42071fedb85d6061.tar.gz chat-e78c79b83213efc40bffc5ef42071fedb85d6061.tar.bz2 chat-e78c79b83213efc40bffc5ef42071fedb85d6061.zip |
Adding rate limiter settings to the admin console
Diffstat (limited to 'model')
-rw-r--r-- | model/config.go | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/model/config.go b/model/config.go index 3c0ada423..d4eb1e714 100644 --- a/model/config.go +++ b/model/config.go @@ -30,6 +30,8 @@ type ServiceSettings struct { AnalyticsUrl string AllowedLoginAttempts int EnableOAuthServiceProvider bool + SegmentDeveloperKey string + GoogleDeveloperKey string } type SSOSetting struct { @@ -96,11 +98,11 @@ type EmailSettings struct { } type RateLimitSettings struct { - UseRateLimiter bool - PerSec int - MemoryStoreSize int - VaryByRemoteAddr bool - VaryByHeader string + EnableRateLimiter bool + PerSec int + MemoryStoreSize int + VaryByRemoteAddr bool + VaryByHeader string } type PrivacySettings struct { @@ -108,11 +110,6 @@ type PrivacySettings struct { ShowFullName bool } -type ClientSettings struct { - SegmentDeveloperKey string - GoogleDeveloperKey string -} - type TeamSettings struct { MaxUsersPerTeam int AllowPublicLink bool @@ -124,15 +121,14 @@ type TeamSettings struct { } type Config struct { - LogSettings LogSettings ServiceSettings ServiceSettings + TeamSettings TeamSettings SqlSettings SqlSettings + LogSettings LogSettings ImageSettings ImageSettings EmailSettings EmailSettings RateLimitSettings RateLimitSettings PrivacySettings PrivacySettings - ClientSettings ClientSettings - TeamSettings TeamSettings SSOSettings map[string]SSOSetting } |