diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-03-16 23:00:33 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-03-17 11:32:06 -0400 |
commit | fdc3207724fde8c0c3fae7e18d7ec8463e72e737 (patch) | |
tree | 1b9fe56ea196cfb8a1a870694e3ae9bb9b71b27f /model/config.go | |
parent | d42459729c6015b07c2f0d872a44212e93bccb39 (diff) | |
download | chat-fdc3207724fde8c0c3fae7e18d7ec8463e72e737.tar.gz chat-fdc3207724fde8c0c3fae7e18d7ec8463e72e737.tar.bz2 chat-fdc3207724fde8c0c3fae7e18d7ec8463e72e737.zip |
Webpack optimizations and fixes
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go index 82c51224e..11ce260ee 100644 --- a/model/config.go +++ b/model/config.go @@ -21,6 +21,10 @@ const ( SERVICE_GITLAB = "gitlab" SERVICE_GOOGLE = "google" + + WEBSERVER_MODE_REGULAR = "regular" + WEBSERVER_MODE_GZIP = "gzip" + WEBSERVER_MODE_DISABLED = "disabled" ) type ServiceSettings struct { @@ -46,6 +50,7 @@ type ServiceSettings struct { SessionCacheInMinutes *int WebsocketSecurePort *int WebsocketPort *int + WebserverMode *string } type SSOSettings struct { @@ -383,6 +388,11 @@ func (o *Config) SetDefaults() { o.ServiceSettings.AllowCorsFrom = new(string) *o.ServiceSettings.AllowCorsFrom = "" } + + if o.ServiceSettings.WebserverMode == nil { + o.ServiceSettings.WebserverMode = new(string) + *o.ServiceSettings.WebserverMode = "regular" + } } func (o *Config) IsValid() *AppError { |