# See MISC-12 server { listen localhost:80; server_name cix7cricsvweeu6k.onion; root /usr/share/nginx/onions/bentaskercouk; # Proxy to the back-end location / { set $cachename "midtier1"; proxy_set_header X-DOWNSTREAM $cachename; # Make sure the host header is correct proxy_set_header Host streamingtest.bentasker.co.uk; # Send the request proxy_pass https://streamingtest.bentasker.co.uk; # Enable Keep-Aluve proxy_http_version 1.1; proxy_set_header Connection ""; # Allow revalidations proxy_cache_revalidate on; # Allow request pipe-lining proxy_cache_lock on; proxy_cache streamingcache; proxy_cache_key "$scheme$host$request_uri"; add_header X-Cache-Status "$cachename-$upstream_cache_status"; } }