SHARE
TWEET

Untitled

a guest Oct 23rd, 2018 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. proxy_cache_path /home4/cache keys_zone=disk_cache:5m levels=1:2 inactive=24h max_size=80G;
  2. server {
  3.     server_name videos.demo.com;
  4.     root /home/nginx/domains/videos.demo.com/public;
  5.    
  6.     location / {
  7.         proxy_cache disk_cache;
  8.     }
  9.  
  10.     location ~ .mp4$ {
  11.         proxy_cache disk_cache;
  12.         proxy_cache_key "$host$request_uri";
  13.         proxy_cache_min_uses 1;
  14.         proxy_cache_methods GET HEAD;
  15.         expires 365d;
  16.         add_header Cache-Control "public, no-transform";
  17.     }
  18.    
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top