diff --git a/nginx.conf b/nginx.conf index 1e56831..6d155e4 100644 --- a/nginx.conf +++ b/nginx.conf @@ -9,7 +9,8 @@ #} server { - listen 80; + listen 80 default_server; + listen [::]:80 default_server; #listen 443 ssl; #ssl on; @@ -33,4 +34,16 @@ server { #gzip_comp_level 5; #gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json; } + + location /static/ { + alias /home/pi/intval3/app/www/static/; + + #uncomment to turn on caching + #expires modified 1y; + access_log off; + #add_header Cache-Control "public"; + gzip on; + gzip_comp_level 5; + gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json; + } } \ No newline at end of file