From ea240f117e9a9dcca725d4502d5a4892ce8a11c0 Mon Sep 17 00:00:00 2001 From: Augusts Bautra Date: Thu, 12 May 2016 18:45:07 +0300 Subject: [PATCH] Update nginx.md In the spirit of discoverability and least surprise, primary custom template example mirrors nginx.conf generated by default. --- docs/nginx.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/nginx.md b/docs/nginx.md index 645a9a22a..231f97c9a 100644 --- a/docs/nginx.md +++ b/docs/nginx.md @@ -39,6 +39,13 @@ server { # set a custom header for requests add_header X-Served-By www-ec2-01; + + gzip on; + gzip_min_length 1100; + gzip_buffers 4 32k; + gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml; + gzip_vary on; + gzip_comp_level 6; location / { proxy_pass http://{{ .APP }};