worker_processes auto;
daemon off;

events {
  worker_connections 1024;
}

http {

  sendfile on;

  proxy_cache_path /usr/local/var/nginx-proxy-cache/data.libris.kb.se levels=1:2
      keys_zone=static:256m
      inactive=3650d max_size=1024m;

  proxy_buffers 8 32k;
  proxy_buffer_size 64k;

  server {
    listen 4004;
    server_name localhost;

    add_header X-Cached $upstream_cache_status;
    proxy_cache static;
    proxy_cache_valid 8h;
    proxy_cache_use_stale updating;
    proxy_cache_methods GET POST;
    proxy_cache_key "$request_uri|$request_body";
    proxy_ignore_headers Expires Cache-Control;

    location / {
      proxy_pass http://data.libris.kb.se/;
    }

  }

}

Add nginx cache config fronting data.libris.kb.se
Add nginx cache config fronting data.libris.kb.se
