nginx-configs/common/piped.conf

16 lines
440 B
Plaintext

add_header Onion-Location http://pd.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vern2dwmqcksmq3oe5kynqc6gy4btviaimqhr55kg6zedjckwnoq.b32.i2p$request_uri;
location / {
proxy_pass http://localhost:8058/;
proxy_set_header Host $host;
}
if ($http_user_agent = "FeedFetcher-Google; (+http://www.google.com/feedfetcher.html)") {
return 403;
}
if ($badagent) {
return 403;
}