Skip to content

Commit 9be9a7c

Browse files
authored
Fix gzip in sample configs (#86)
* Update nginx.conf.erb * Update nginx-solo-sample.conf.erb * Update nginx-nextjs-with-forcessl.conf.erb
1 parent 4cd76d0 commit 9be9a7c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

config/nginx-nextjs-with-forcessl.conf.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ http {
1212
gzip on;
1313
gzip_comp_level 2;
1414
gzip_min_length 512;
15+
gzip_proxied any; # Heroku router sends Via header
1516

1617
server_tokens off;
1718

config/nginx-solo-sample.conf.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ http {
1212
gzip on;
1313
gzip_comp_level 2;
1414
gzip_min_length 512;
15+
gzip_proxied any; # Heroku router sends Via header
1516

1617
server_tokens off;
1718

config/nginx.conf.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ http {
1212
gzip on;
1313
gzip_comp_level 2;
1414
gzip_min_length 512;
15+
gzip_proxied any; # Heroku router sends Via header
1516

1617
server_tokens off;
1718

0 commit comments

Comments
 (0)