diff --git a/nginx/etc/nginx/conf.d/gzip.conf b/nginx/etc/nginx/conf.d/gzip.conf new file mode 100644 index 0000000..bc71a29 --- /dev/null +++ b/nginx/etc/nginx/conf.d/gzip.conf @@ -0,0 +1,7 @@ +## +# Gzip Settings +## +gzip on; +gzip_vary on; +gzip_proxied any; +gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml; diff --git a/nginx/etc/nginx/nginx.conf b/nginx/etc/nginx/nginx.conf index 2d2ed83..210b72a 100644 --- a/nginx/etc/nginx/nginx.conf +++ b/nginx/etc/nginx/nginx.conf @@ -37,14 +37,6 @@ http { include /etc/nginx/mime.types; default_type application/octet-stream; - ## - # Gzip Settings - ## - gzip on; - gzip_vary on; - gzip_proxied any; - gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml; - ## # Custom Configs ##