summaryrefslogtreecommitdiffstats
path: root/roles/media/templates/nginx-site-config
blob: f6a83b11481aa03b11e6dc3a92d4602c9922e1e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
server {
    listen 80;
    server_name {{ media_server_name }};
    root /var/www/{{ media_server_name }};
    error_page 404 403 /404.html;
    location / {
        add_header Cache-Control "no-store, no-cache, must-revalidate";
        add_header Pragma "no-cache";
        expires 0;
    }
    types {
        text/plain org;
    }

    location ~* \.vtt$ {
        add_header Cache-Control "no-cache, no-store, must-revalidate";
        add_header Pragma "no-cache";
        add_header Expires "0";
    }
}