forked from JaimeObregon/retrosantander
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
32 lines (27 loc) · 881 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
server {
resolver 8.8.8.8 8.8.4.4;
listen 80;
server_name retrogasteiz;
root /usr/share/nginx/html;
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
location / {
index index.html;
}
location ~* ^/download/([a-zA-Z0-9-_]+)\.webp$ {
set $filename $1;
proxy_pass https://retrogasteiz.blob.core.windows.net/retrogasteiz/compared/$filename.jpg;
proxy_hide_header Content-Type;
proxy_hide_header Content-Disposition;
add_header Content-Disposition "attachment;";
}
location ~* \.(js|json|webp)$ {
expires 4h;
add_header Cache-Control "public, max-age=14400";
}
}