Skip to content

Commit

Permalink
no need to gzip here, reverse proxy will do it
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Feb 8, 2025
1 parent a89aedd commit ac1580c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,30 @@ http {
server_tokens off;

# Gzip compression
gzip on;
gzip_types
text/plain
application/json
application/javascript
text/css
text/xml
application/xml
application/xml+rss
gzip off;
gzip_types
text/plain
application/json
application/javascript
text/css
text/xml
application/xml
application/xml+rss
text/javascript;

# Server block
server {
listen 80;
listen 80;
server_name _;

include /etc/nginx/conf.d/redirects.conf;

location /docs {
alias /usr/share/nginx/html/docs;
alias /usr/share/nginx/html/docs;
index index.html;
try_files $uri $uri/ $uri.html =404;
}

location = /favicon.ico {
rewrite ^/favicon.ico$ /docs/favicon.ico;
}
Expand Down

0 comments on commit ac1580c

Please sign in to comment.