Update nginx config to use static dir
This commit is contained in:
parent
ca1d0c4bb7
commit
f86ab02462
15
nginx.conf
15
nginx.conf
|
@ -9,7 +9,8 @@
|
||||||
#}
|
#}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80 default_server;
|
||||||
|
listen [::]:80 default_server;
|
||||||
#listen 443 ssl;
|
#listen 443 ssl;
|
||||||
|
|
||||||
#ssl on;
|
#ssl on;
|
||||||
|
@ -33,4 +34,16 @@ server {
|
||||||
#gzip_comp_level 5;
|
#gzip_comp_level 5;
|
||||||
#gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
|
#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;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue