summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-02-04 16:03:47 -0600
committerChris Buechler <cmb@pfsense.org>2016-02-04 16:03:47 -0600
commitc4da754dfc7d09f38b5b2a13fed9579683f4a403 (patch)
tree4164f0b1989ea25a057441ff387bc6a941735939 /src
parentd46049e1540fae78cc1a5929bdb7e84cf3a46dd0 (diff)
downloadpfsense-c4da754dfc7d09f38b5b2a13fed9579683f4a403.zip
pfsense-c4da754dfc7d09f38b5b2a13fed9579683f4a403.tar.gz
Enable gzip compression in nginx.
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/system.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc
index fbcb230..e9a53b9 100644
--- a/src/etc/inc/system.inc
+++ b/src/etc/inc/system.inc
@@ -1300,6 +1300,9 @@ $nginx_config .= <<<EOD
listen [::]:{$nginx_port};
client_max_body_size 200m;
+ gzip on;
+ gzip_types text/html text/plain text/css text/javascript;
+
EOD;
if ($cert <> "" and $key <> "") {
OpenPOWER on IntegriCloud