Advertisement
Comrada

Untitled

Feb 10th, 2014
146
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 80;
  3. server_name v1-de.site.tv;
  4. root /home/user/domains/vstore/;
  5. index index.html index.htm;
  6. autoindex off;
  7.  
  8. expires 30d;
  9.  
  10. location /get/ {
  11. rewrite /get/([a-zA-Z0-9_\-]*)/([0-9]*)/(.*)\.flv$ /video/$3.flv?secl=$1&sect=$2;
  12. rewrite /get/([a-zA-Z0-9_\-]*)/([0-9]*)/(.*)\.mp4$ /video/$3.mp4?secl=$1&sect=$2;
  13. }
  14.  
  15. location ~ /video/(.*)\.flv$ {
  16. secure_link $arg_secl,$arg_sect;
  17. secure_link_md5 ea243e95aac99e4508f6bb6b064503f3$uri$arg_sect$remote_addr;
  18. if ($secure_link = "") { return 403; }
  19. if ($secure_link = "0") { return 404; }
  20. rewrite ^/video/(.*)$ /video/$1 break;
  21. root /home/user/domains/vstore/;
  22. limit_rate_after 10m;
  23. limit_rate 70k;
  24. flv;
  25. }
  26.  
  27. location ~ /video/(.*)\.mp4$ {
  28. secure_link $arg_secl,$arg_sect;
  29. secure_link_md5 ea243e95aac99e4508f6bb6b064503f3$uri$arg_sect$remote_addr;
  30. if ($secure_link = "") { return 403; }
  31. if ($secure_link = "0") { return 404; }
  32. rewrite ^/video/(.*)$ /video/$1 break;
  33. root /home/user/domains/vstore/;
  34. limit_rate_after 10m;
  35. limit_rate 90k;
  36. mp4;
  37. }
  38.  
  39. location ~ /trailers/(.*)\.mp4$ {
  40. limit_rate_after 5m;
  41. limit_rate 90k;
  42. mp4;
  43. }
  44.  
  45. location ~ /trailers/(.*)\.flv$ {
  46. limit_rate_after 5m;
  47. limit_rate 70k;
  48. flv;
  49. }
  50. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement