diff --git a/static/nginx.conf b/static/nginx.conf index 9aea74c..5a47deb 100644 --- a/static/nginx.conf +++ b/static/nginx.conf @@ -1,3 +1,7 @@ +# https://docs.nginx.com/nginx/admin-guide/dynamic-modules/brotli/ +load_module modules/ngx_http_brotli_filter_module.so; # for compressing responses on-the-fly +load_module modules/ngx_http_brotli_static_module.so; # for serving pre-compressed files + user www-data; worker_processes 2; pid /run/nginx.pid; @@ -11,10 +15,6 @@ events { use epoll; } -# https://docs.nginx.com/nginx/admin-guide/dynamic-modules/brotli/ -load_module modules/ngx_http_brotli_filter_module.so; # for compressing responses on-the-fly -load_module modules/ngx_http_brotli_static_module.so; # for serving pre-compressed files - http { ## # Basic Settings