Skip to content

Commit

Permalink
Use gzip only on angular files and remove tcp options
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-battaglia committed Oct 19, 2023
1 parent e9ef446 commit 9e29a1a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions angular-frontend/backend.nginx.conf.template
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
server {
listen 8080;
sendfile on;
default_type application/octet-stream;
tcp_nopush on;
tcp_nodelay on;

gzip on;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.";
gzip_min_length 256;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_comp_level 9;

#default_type application/octet-stream;
#tcp_nopush on;
#tcp_nodelay on;

root /usr/share/nginx/html;

location / {
try_files $uri $uri/index.html =404;

gzip on;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.";
gzip_min_length 256;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_comp_level 9;
}

location /connect {
Expand Down

0 comments on commit 9e29a1a

Please sign in to comment.