now that static_version is flagshipped and hopefully implemented in most apps, let's setup it by default
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user