From f86ab024621248562c46dad24c77fecb2ec8f34c Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Sun, 7 Oct 2018 17:16:22 -0400 Subject: [PATCH] Update nginx config to use static dir --- nginx.conf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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