2023-07-18 22:46:34 +00:00
|
|
|
add_header Onion-Location http://gts.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
# set to 127.0.0.1 instead of localhost to work around https://stackoverflow.com/a/52550758
|
|
|
|
proxy_pass http://127.0.0.1:1420;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
}
|
|
|
|
client_max_body_size 40M;
|
|
|
|
|
2023-11-20 07:03:34 +00:00
|
|
|
if ($badagent) {
|
|
|
|
return 403;
|
|
|
|
}
|