Update nginx config to use static dir

This commit is contained in:
mmcwilliams 2018-10-07 17:16:22 -04:00
parent ca1d0c4bb7
commit f86ab02462
1 changed files with 14 additions and 1 deletions

View File

@ -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;
}
}