24 lines
767 B
Plaintext
24 lines
767 B
Plaintext
add_header Onion-Location http://hd.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
|
|
add_header X-I2P-Location http://vernfy3k7royqfe7pg6wgzj53ipltd5nb4acjtjmwgpqrkxwmcla.b32.i2p$request_uri;
|
|
|
|
subs_filter "hd.vern.cc" "$host";
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:3001;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
|
|
location /socket.io/ {
|
|
proxy_pass http://127.0.0.1:3001;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
}
|
|
if ($badagent) {
|
|
return 403;
|
|
}
|