summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
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
commite78c79b83213efc40bffc5ef42071fedb85d6061 (patch)
treea9109f40bc8968c8fe9584b21dd4194d8a49c49c /model/config.go
parentcae5dbd245f05e9441156a3918ef796d92ecf331 (diff)
downloadchat-e78c79b83213efc40bffc5ef42071fedb85d6061.tar.gz
chat-e78c79b83213efc40bffc5ef42071fedb85d6061.tar.bz2
chat-e78c79b83213efc40bffc5ef42071fedb85d6061.zip
Adding rate limiter settings to the admin console
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go22
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
}