lol

Merge pull request #187994 from Izorkin/update-nginx-gzip

authored by

Sandro and committed by
GitHub
600adcfd ba0f7ba3

+42 -14
+30
nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
··· 699 699 </listitem> 700 700 <listitem> 701 701 <para> 702 + Updated recommended settings in 703 + <literal>services.nginx.recommendedGzipSettings</literal>: 704 + </para> 705 + <itemizedlist spacing="compact"> 706 + <listitem> 707 + <para> 708 + Enables gzip compression for only certain proxied 709 + requests. 710 + </para> 711 + </listitem> 712 + <listitem> 713 + <para> 714 + Allow checking and loading of precompressed files. 715 + </para> 716 + </listitem> 717 + <listitem> 718 + <para> 719 + Updated gzip mime-types. 720 + </para> 721 + </listitem> 722 + <listitem> 723 + <para> 724 + Increased the minimum length of a response that will be 725 + gzipped. 726 + </para> 727 + </listitem> 728 + </itemizedlist> 729 + </listitem> 730 + <listitem> 731 + <para> 702 732 <link xlink:href="https://garagehq.deuxfleurs.fr/">Garage</link> 703 733 version is based on 704 734 <link xlink:href="options.html#opt-system.stateVersion">system.stateVersion</link>,
+6
nixos/doc/manual/release-notes/rl-2305.section.md
··· 179 179 180 180 - A new option `recommendedBrotliSettings` has been added to `services.nginx`. Learn more about compression in Brotli format [here](https://github.com/google/ngx_brotli/blob/master/README.md). 181 181 182 + - Updated recommended settings in `services.nginx.recommendedGzipSettings`: 183 + - Enables gzip compression for only certain proxied requests. 184 + - Allow checking and loading of precompressed files. 185 + - Updated gzip mime-types. 186 + - Increased the minimum length of a response that will be gzipped. 187 + 182 188 - [Garage](https://garagehq.deuxfleurs.fr/) version is based on [system.stateVersion](options.html#opt-system.stateVersion), existing installations will keep using version 0.7. New installations will use version 0.8. In order to upgrade a Garage cluster, please follow [upstream instructions](https://garagehq.deuxfleurs.fr/documentation/cookbook/upgrading/) and force [services.garage.package](options.html#opt-services.garage.package) or upgrade accordingly [system.stateVersion](options.html#opt-system.stateVersion). 183 189 184 190 - `hip` has been separated into `hip`, `hip-common` and `hipcc`.
+6 -14
nixos/modules/services/web-servers/nginx/default.nix
··· 184 184 brotli_window 512k; 185 185 brotli_min_length 256; 186 186 brotli_types ${lib.concatStringsSep " " compressMimeTypes}; 187 - brotli_buffers 32 8k; 188 187 ''} 189 188 189 + # https://docs.nginx.com/nginx/admin-guide/web-server/compression/ 190 190 ${optionalString cfg.recommendedGzipSettings '' 191 191 gzip on; 192 - gzip_proxied any; 193 - gzip_comp_level 5; 194 - gzip_types 195 - application/atom+xml 196 - application/javascript 197 - application/json 198 - application/xml 199 - application/xml+rss 200 - image/svg+xml 201 - text/css 202 - text/javascript 203 - text/plain 204 - text/xml; 192 + gzip_static on; 205 193 gzip_vary on; 194 + gzip_comp_level 5; 195 + gzip_min_length 256; 196 + gzip_proxied expired no-cache no-store private auth; 197 + gzip_types ${lib.concatStringsSep " " compressMimeTypes}; 206 198 ''} 207 199 208 200 ${optionalString cfg.recommendedProxySettings ''