add_header Onion-Location http://$site-$user.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri; add_header X-I2P-Location http://verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p/socks/$user/$site$request_uri; error_log /var/log/nginx/vern.cc-error.log info; ssi on; location / { proxy_pass http://unix:/var/socks/$user.sock; proxy_http_version 1.1; proxy_set_header Host $site-$user.vern.cc; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; } if ($badagent) { return 403; }