# See MISC-12 server { listen localhost:9080; server_name f5jayrbaz7nmtyyr.onion; root /usr/share/nginx/onions/empty; # Proxy to the back-end location / { resolver 127.0.0.1; set $cachename "Edge2"; proxy_set_header X-DOWNSTREAM $cachename; # Make sure the host header is correct proxy_set_header Host "cix7cricsvweeu6k.onion"; # Send the request proxy_pass http://cix7cricsvweeu6k.onion:8091; # NGinx too old, no cache revalidation, lock or upstream Keepalive proxy_cache streamingcache; proxy_cache_key "$scheme$host$request_uri"; add_header X-Cache-Status "$cachename-$upstream_cache_status"; } }