Skip to content

Commit

Permalink
feat: enable brotli/gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
batleforc committed Aug 24, 2024
1 parent 2504bc4 commit 85c1e0a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build/front/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ server {

listen 8080;

# GZIP
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml;

# BROTLI
brotli on;
brotli_comp_level 6;
brotli_types text/xml image/svg+xml application/x-font-ttf image/vnd.microsoft.icon application/x-font-opentype application/json font/eot application/vnd.ms-fontobject application/javascript font/otf application/xml application/xhtml+xml text/javascript application/x-javascript text/plain application/x-font-truetype application/xml+rss image/x-icon font/opentype text/css image/x-win-bitmap;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
Expand Down

0 comments on commit 85c1e0a

Please sign in to comment.