Skip to content

Commit

Permalink
Update nginx.conf: enable the zstd compression
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre authored Nov 25, 2024
1 parent 1c85574 commit 9bb62b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,16 @@ http {
more_set_headers "Content-Security-Policy: object-src 'none'; frame-ancestors 'self'; form-action 'self'; block-all-mixed-content; sandbox allow-forms allow-same-origin allow-scripts allow-popups allow-downloads; base-uri 'self';";

# enable response compression
gzip on;
gzip on;

# https://github.com/google/ngx_brotli#configuration-directives
brotli on;
brotli_static on;

# https://github.com/tokers/zstd-nginx-module#directives
zstd on;
zstd_static on;

include /etc/nginx/conf.d/*.conf;
}

0 comments on commit 9bb62b0

Please sign in to comment.