Skip to content

Instantly share code, notes, and snippets.

@hirthwork
Created Dec 27, 2014
Embed
What would you like to do?
i2p rss crutches
server {
listen 127.0.0.1:81;
root /var/www/localhost/htdocs;
rewrite ^(.*)$ /i2p-proxy.php break;
location / {
proxy_read_timeout 5m;
fastcgi_param HTTP_HOST zzz.i2p;
fastcgi_param HTTP_REQUEST /topics.rss;
include fastcgi.conf;
fastcgi_index i2p-proxy.php;
fastcgi_pass 127.0.0.1:9000;
}
}
server {
listen 127.0.0.1:82;
root /var/www/localhost/htdocs;
rewrite ^(.*)$ /i2p-proxy.php break;
location / {
proxy_read_timeout 5m;
fastcgi_param HTTP_HOST planet.i2p;
fastcgi_param HTTP_REQUEST /rss20.xml;
include fastcgi.conf;
fastcgi_index i2p-proxy.php;
fastcgi_pass 127.0.0.1:9000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment