Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #user nobody;
- worker_processes 1;
- events {
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- sendfile on;
- keepalive_timeout 65;
- proxy_cache_path /tmp use_temp_path=off levels=1:2 keys_zone=disk_cache:24m max_size=500g inactive=7d;
- server {
- listen 80;
- server_name localhost;
- location / {
- proxy_pass http://api.s3.globoi.com;
- proxy_cache disk_cache;
- root html;
- }
- location ~ .*\.mp4 {
- proxy_pass http://my_backend;
- proxy_cache disk_cache;
- proxy_cache_lock on;
- proxy_cache_lock_timeout 180s;
- proxy_cache_lock_age 180s;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement