Guest User

Untitled

a guest
Jul 3rd, 2017
93
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #user nobody;
  2. worker_processes 1;
  3.  
  4. events {
  5. worker_connections 1024;
  6. }
  7.  
  8. http {
  9. include mime.types;
  10. default_type application/octet-stream;
  11. sendfile on;
  12. keepalive_timeout 65;
  13. proxy_cache_path /tmp use_temp_path=off levels=1:2 keys_zone=disk_cache:24m max_size=500g inactive=7d;
  14.  
  15. server {
  16. listen 80;
  17. server_name localhost;
  18. location / {
  19. proxy_pass http://api.s3.globoi.com;
  20. proxy_cache disk_cache;
  21. root html;
  22. }
  23.  
  24. location ~ .*\.mp4 {
  25. proxy_pass http://my_backend;
  26. proxy_cache disk_cache;
  27. proxy_cache_lock on;
  28. proxy_cache_lock_timeout 180s;
  29. proxy_cache_lock_age 180s;
  30. }
  31. }
  32. }
RAW Paste Data