added gzip config to nginx conf file

This commit is contained in:
Ankit Anand 2021-05-30 11:55:47 +05:30
parent cbd2036613
commit 5afc04f205

View File

@ -2,6 +2,15 @@ server {
listen 3000; listen 3000;
server_name _; server_name _;
gzip on;
gzip_static on;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_proxied any;
gzip_vary on;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
location / { location / {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html index.htm; index index.html index.htm;