diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-02-06 12:06:42 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-02-06 12:06:42 +0100 |
commit | 745cedfedd806f64ca26a7bb37068d932a4eb729 (patch) | |
tree | 3b1c637c3bcf13e833e6403803352284d45d5794 /etc/nginx/sites-enabled/www-stage.site | |
parent | e87eaf6656b98f89c8b8c84ddaaffb861b3846dd (diff) | |
download | deployment-745cedfedd806f64ca26a7bb37068d932a4eb729.tar.gz deployment-745cedfedd806f64ca26a7bb37068d932a4eb729.tar.bz2 deployment-745cedfedd806f64ca26a7bb37068d932a4eb729.zip |
serve images for staging correctly, allow data URLs as img-src
Diffstat (limited to 'etc/nginx/sites-enabled/www-stage.site')
-rw-r--r-- | etc/nginx/sites-enabled/www-stage.site | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/etc/nginx/sites-enabled/www-stage.site b/etc/nginx/sites-enabled/www-stage.site index 555e60d..e8a988b 100644 --- a/etc/nginx/sites-enabled/www-stage.site +++ b/etc/nginx/sites-enabled/www-stage.site @@ -48,17 +48,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 /home/docbuilder/stage.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; + } + # FIXME: this location newest files are from Oct'16 location /releases { root /var/www; @@ -68,4 +68,11 @@ server { location /files { root /var/www; } + + location ~* \.(png|jpg|jpeg|gif|ico|svg|js|css)$ { + root /home/docbuilder/stage.taler.net; + expires 1y; + } + + } |