diff --git a/config/config.json b/config/config.json
index 03df2bf370..de4bd5e841 100644
--- a/config/config.json
+++ b/config/config.json
@@ -23,7 +23,7 @@
"SessionCacheInMinutes": 10,
"WebsocketSecurePort": 443,
"WebsocketPort": 80,
- "WebserverMode": "regular",
+ "WebserverMode": "gzip",
"EnableCustomEmoji": false,
"RestrictCustomEmojiCreation": "all"
},
@@ -188,4 +188,4 @@
"LocaleAttribute": "",
"LoginButtonText": "With SAML"
}
-}
\ No newline at end of file
+}
diff --git a/model/config.go b/model/config.go
index 61c39bc5bd..d86ff75b4a 100644
--- a/model/config.go
+++ b/model/config.go
@@ -623,7 +623,9 @@ func (o *Config) SetDefaults() {
if o.ServiceSettings.WebserverMode == nil {
o.ServiceSettings.WebserverMode = new(string)
- *o.ServiceSettings.WebserverMode = "regular"
+ *o.ServiceSettings.WebserverMode = "gzip"
+ } else if *o.ServiceSettings.WebserverMode == "regular" {
+ *o.ServiceSettings.WebserverMode = "gzip"
}
if o.ServiceSettings.EnableCustomEmoji == nil {
diff --git a/webapp/components/admin_console/configuration_settings.jsx b/webapp/components/admin_console/configuration_settings.jsx
index 65cec30270..4f88a19542 100644
--- a/webapp/components/admin_console/configuration_settings.jsx
+++ b/webapp/components/admin_console/configuration_settings.jsx
@@ -10,6 +10,7 @@ import {FormattedMessage} from 'react-intl';
import SettingsGroup from './settings_group.jsx';
import TextSetting from './text_setting.jsx';
import ReloadConfigButton from './reload_config.jsx';
+import WebserverModeDropdownSetting from './webserver_mode_dropdown_setting.jsx';
export default class ConfigurationSettings extends AdminSettings {
constructor(props) {
@@ -20,7 +21,8 @@ export default class ConfigurationSettings extends AdminSettings {
this.renderSettings = this.renderSettings.bind(this);
this.state = Object.assign(this.state, {
- listenAddress: props.config.ServiceSettings.ListenAddress
+ listenAddress: props.config.ServiceSettings.ListenAddress,
+ webserverMode: props.config.ServiceSettings.WebserverMode
});
}
@@ -32,6 +34,7 @@ export default class ConfigurationSettings extends AdminSettings {
getConfigFromState(config) {
config.ServiceSettings.ListenAddress = this.state.listenAddress;
+ config.ServiceSettings.WebserverMode = this.state.webserverMode;
return config;
}
@@ -68,8 +71,13 @@ export default class ConfigurationSettings extends AdminSettings {
value={this.state.listenAddress}
onChange={this.handleChange}
/>
+
|
+ |
+
+ |
+
|
+ |
+
+ |
+
|
+ |
+
+ |
+
+