diff options
Diffstat (limited to 'roles/media/templates')
| -rw-r--r-- | roles/media/templates/nginx-site-config | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/roles/media/templates/nginx-site-config b/roles/media/templates/nginx-site-config index ba25cba..f6a83b1 100644 --- a/roles/media/templates/nginx-site-config +++ b/roles/media/templates/nginx-site-config @@ -1,7 +1,17 @@ server { - listen 80; - server_name {{ media_server_name }}; - root /var/www/{{ media_server_name }}; + 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"; |
