diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-14 23:30:38 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-14 23:30:38 +0100 |
commit | adc8e19c7c0057c7555d9b4549020b336292a339 (patch) | |
tree | c979bdfa9f0003002f12745a39a3985d15a49452 | |
parent | d5724e646ba58ec27d2ea17ef4b82ad1357fba54 (diff) | |
download | deployment-adc8e19c7c0057c7555d9b4549020b336292a339.tar.gz deployment-adc8e19c7c0057c7555d9b4549020b336292a339.tar.bz2 deployment-adc8e19c7c0057c7555d9b4549020b336292a339.zip |
fix deployment to avoid caputure of /video paths by image-resource max-cache expiration directive
-rw-r--r-- | etc/nginx/sites-enabled/www-ssl.site | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/etc/nginx/sites-enabled/www-ssl.site b/etc/nginx/sites-enabled/www-ssl.site index f9ef609..e43beda 100644 --- a/etc/nginx/sites-enabled/www-ssl.site +++ b/etc/nginx/sites-enabled/www-ssl.site @@ -63,17 +63,17 @@ server { gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript; - location ~* \.(png|jpg|jpeg|gif|ico|svg|js|css)$ { - root /var/www/taler.net; - expires 1y; - } - # Note: this will go to /var/www/(videos|releases), which we took out of Git location /videos { root /var/www; expires max; } + location ~* /videos/.*\.(png|jpg|ogv|webm|gif|svg)$ { + root /var/www; + expires max; + } + location /releases { root /var/www; autoindex on; @@ -82,4 +82,11 @@ server { location /files { root /var/www; } + + location ~* \.(png|jpg|jpeg|gif|ico|svg|js|css)$ { + root /var/www/taler.net; + expires 1y; + } + + } |