Skip to content

Instantly share code, notes, and snippets.

@hirthwork
Created December 27, 2014 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hirthwork/f07b4a4d2a3245500b53 to your computer and use it in GitHub Desktop.
Save hirthwork/f07b4a4d2a3245500b53 to your computer and use it in GitHub Desktop.
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