# What is the optimized configuration for FLV stream

**URL:** <https://www.ruby-forum.com/t/what-is-the-optimized-configuration-for-flv-stream/202342>\
**Category:** NGINX\
**Created:** [January 27, 2011, 5:46am UTC](https://www.ruby-forum.com/t/what-is-the-optimized-configuration-for-flv-stream/202342 "2011-01-27T05:46:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [January 27, 2011, 5:46am UTC](https://www.ruby-forum.com/t/what-is-the-optimized-configuration-for-flv-stream/202342/1 "2011-01-27T05:46:19Z")

</div>

Hi,

I’m configing a http(pseudo)-stream server for flv media files. As a  
newcomer to Nginx, I’m wondering what is the special configuration  
should I care about on performance/throughput etc. The following is my  
current config which is straightforward:

```auto
# My Stream media(flv) server

server {

    listen 80;

    server_name vd.my.domain;

    default_type application/octet-stream;

    sendfile on;

    root /path/to/flv/files/

    location ~* \.flv$ {
        flv;
    }
}
```

I fount some points in this post  
“[nginx slow at  
streaming flv](http://forum.nginx.org/read.php?2,77934,77934)”, but it’s seemed a bit old and some directives not  
available in the latest nginx version . Any suggestion ?

Especially, according to the post mentioned above, should I turn off the  
sendfile ? shoud it be better to using directio and  
read\_ahead ? or should I put another Nginx instance in front of  
this one to proxy it to use the proxy cache ability of nginx? I know  
the best way is to test by myself, but a right direction guide will help  
me a lot.

Posted at Nginx Forum:

> **[What is the optimized configuration for FLV stream](https://forum.nginx.org/read.php?2,169958,169958#msg-169958)**
>
> Hi, I'm configing a http(pseudo)-stream server for flv media files. As a newcomer to Nginx, I'm wondering what is the special configuration should I care about on performance/throughput etc. The following is my current config which is...
