Posted By

lamebollock on 03/25/11


Tagged

flv streaming secure nginx MP4 pseudo-streaming


Versions (?)

Nginx: Secure Streaming Configuration


 / Published in: HAML
 

URL: http://www.ruby-forum.com/topic/827076

Configuration code to setup a secure internal URI for pointing X-Accel-Redirects to.

  1. # Actual Streaming
  2. location ~ /streaming/(.*\.mp4)$ {
  3. # Fix strange CPU usage caused by gzip
  4. gzip off;
  5. gzip_static off;
  6.  
  7. limit_rate_after 10m;
  8. limit_rate 400k;
  9. alias /streaming/$1;
  10. internal;
  11. mp4;
  12. }
  13.  
  14. location ~ /streaming/(.*\.flv)$ {
  15. # Fix strange CPU usage caused by gzip
  16. gzip off;
  17. gzip_static off;
  18.  
  19. limit_rate_after 10m;
  20. limit_rate 400k;
  21. alias /streaming/$1;
  22. internal;
  23. flv;
  24. }

Report this snippet  

You need to login to post a comment.