# See MISC-12 server { listen 127.0.0.1:9080; server_name f5jayrbaz7nmtyyr.onion; root /usr/share/nginx/onions/empty; resolver 127.0.0.1; # Proxy to the back-end location / { set $cachename "Edge1"; 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; # 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"; add_header Cache-Control "max-age=0"; } }