Create a gist now

Instantly share code, notes, and snippets.

@pothibo /fv.conf Secret
Created Aug 14, 2015

What would you like to do?
upstream fv.local {
server localhost:9292;
}
server {
listen 80;
location / {
root /srv/fv;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://fv.local;
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
}
location ~ ^/(assets/videos)/.(mp4) {
root /srv/fv/public;
mp4;
mp4_buffer_size 1m;
mp4_max_buffer_size 5m;
}
location ~ ^/(assets)/ {
root /srv/fv/public;
gzip on;
expires max;
add_header Cache-Control public;
gzip_types
text/plain
text/css
text/js
text/xml
text/javascript
application/javascript
application/x-javascript
application/xml
application/xml+rss;
}
}
173.177.64.156 - - [14/Aug/2015:17:20:43 -0400] "GET /assets/videos/035bbfdb-17e7-46c1-9898-c156e9227068.mp4 HTTP/1.1" 416 608 "http://104.131.2.246/assets/videos/035bbfdb-17e7-46c1-9898-c156e9227068.mp4" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment