From 9be9a7c14c5c4b9d0ed9c2662dd88b9aa61ee4a5 Mon Sep 17 00:00:00 2001 From: Kirill Date: Mon, 28 Jun 2021 18:42:51 +0300 Subject: [PATCH] Fix gzip in sample configs (#86) * Update nginx.conf.erb * Update nginx-solo-sample.conf.erb * Update nginx-nextjs-with-forcessl.conf.erb --- config/nginx-nextjs-with-forcessl.conf.erb | 1 + config/nginx-solo-sample.conf.erb | 1 + config/nginx.conf.erb | 1 + 3 files changed, 3 insertions(+) diff --git a/config/nginx-nextjs-with-forcessl.conf.erb b/config/nginx-nextjs-with-forcessl.conf.erb index bcb62283..65255b01 100644 --- a/config/nginx-nextjs-with-forcessl.conf.erb +++ b/config/nginx-nextjs-with-forcessl.conf.erb @@ -12,6 +12,7 @@ http { gzip on; gzip_comp_level 2; gzip_min_length 512; + gzip_proxied any; # Heroku router sends Via header server_tokens off; diff --git a/config/nginx-solo-sample.conf.erb b/config/nginx-solo-sample.conf.erb index bab36668..bf197164 100644 --- a/config/nginx-solo-sample.conf.erb +++ b/config/nginx-solo-sample.conf.erb @@ -12,6 +12,7 @@ http { gzip on; gzip_comp_level 2; gzip_min_length 512; + gzip_proxied any; # Heroku router sends Via header server_tokens off; diff --git a/config/nginx.conf.erb b/config/nginx.conf.erb index 9f5eb3e6..85aed6c8 100644 --- a/config/nginx.conf.erb +++ b/config/nginx.conf.erb @@ -12,6 +12,7 @@ http { gzip on; gzip_comp_level 2; gzip_min_length 512; + gzip_proxied any; # Heroku router sends Via header server_tokens off;