commit adc8e19c7c0057c7555d9b4549020b336292a339
parent d5724e646ba58ec27d2ea17ef4b82ad1357fba54
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 14 Feb 2017 23:30:38 +0100
fix deployment to avoid caputure of /video paths by image-resource max-cache expiration directive
Diffstat:
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git 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;
+ }
+
+
}