Skip to content

Commit

Permalink
feat: move gzip config
Browse files Browse the repository at this point in the history
so it can be easily overwritten or removed
  • Loading branch information
Scarbous committed Jan 9, 2025
1 parent 3b34c63 commit c6109c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 7 additions & 0 deletions nginx/etc/nginx/conf.d/gzip.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
##
# Gzip Settings
##
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
8 changes: 0 additions & 8 deletions nginx/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

##
# Gzip Settings
##
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;

##
# Custom Configs
##
Expand Down

0 comments on commit c6109c9

Please sign in to comment.