now that static_version is flagshipped and hopefully implemented in most apps, let's setup it by default

This commit is contained in:
niphlod
2014-03-17 21:32:42 +01:00
parent 2802e29945
commit 9a8231f675
8 changed files with 54 additions and 49 deletions
@@ -181,8 +181,9 @@ echo '
server {
listen 80;
server_name $hostname;
location ~* /(\w+)/static/ {
root /opt/web-apps/web2py/applications/;
location ~* /(\w+)/static(?:/_[\d]+\.[\d]+\.[\d]+)?/(.*)$ {
alias /opt/web-apps/web2py/applications/$1/static/$2;
expires max;
}
location / {
uwsgi_pass 127.0.0.1:9001;
@@ -201,6 +202,10 @@ server {
include uwsgi_params;
uwsgi_param UWSGI_SCHEME $scheme;
}
location ~* /(\w+)/static(?:/_[\d]+\.[\d]+\.[\d]+)?/(.*)$ {
alias /opt/web-apps/web2py/applications/$1/static/$2;
expires max;
}
}
' > /etc/nginx/conf.d/web2py.conf