Skip to content
Snippets Groups Projects
Commit fae7cbb4 authored by Vineet Reddy Rajula's avatar Vineet Reddy Rajula
Browse files

Add gzip compression to nginx

parent b6df2d7a
No related branches found
No related tags found
2 merge requests!11Perf nginx,!10Draft: Added Redis and Predis to composer
Pipeline #2698133 passed
...@@ -12,6 +12,14 @@ server { ...@@ -12,6 +12,14 @@ server {
#ssl_session_timeout 4h; #ssl_session_timeout 4h;
root /var/run/app/web; root /var/run/app/web;
# Add gzip compression
gzip on;
gzip_vary on;
gzip_min_length 1000;
gzip_comp_level 5;
gzip_types application/json text/css text/javascript application/x-javascript application/javascript image/svg+xml;
gzip_proxied any;
# Disables specifying the port in absolute redirects # Disables specifying the port in absolute redirects
port_in_redirect off; port_in_redirect off;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment