
user cdnuser cdnuser;
worker_processes 1;
pid nginx.pid;

error_log error.log;

worker_rlimit_nofile 73728;
worker_rlimit_core 2048M;
working_directory .;

events {

    worker_connections 1576;
    use epoll;

}

http {

    include mime.types;
    default_type application/octet-stream;

    sendfile on;
    aio threads;
    tcp_nopush off;
    tcp_nodelay on;
    keepalive_timeout 60 20;
    ignore_invalid_headers on;

    log_format my_log '$bytes_sent $request';
    access_log access_log my_log;

    proxy_cache_path my_cache levels=2:2 keys_zone=zone_c1:512m inactive=1d max_size=15g;

    server {

        listen 127.0.0.1:8080;
        server_name rp-test.com;

        location / {
            proxy_cache_key 1.1$uri;
            proxy_cache zone_c1;
            proxy_cache_min_uses 1;
            proxy_pass http://127.0.0.1:8081;
        }

    }
}
