Flood: SCGI Mount Point

Created on 9 Nov 2017  路  8Comments  路  Source: Flood-UI/flood

Hi,

I have my rTorrent & ruTorrent running on a seedbox. The seedbox provides the RPC connection with a route, such as this image taken from their wiki. How do I configure Flood to use this path?

Edit: I also need basic auth to connect to the endpoint.

Thanks.

image

Most helpful comment

Sorry to revive this dead thread, but I figured I'd share my solution. This can be handled entirely via your proxy / web server.

Expose the mount point via relevant configuration here. Obviously, you'll want to protect this with basic authentication at a minimum; not something you'd want publicly exposed.

Here's the location example from my nginx server config:

location /RPC2 {
  auth_basic  "jive turkey?";
  auth_basic_user_file  /etc/nginx/passwd/flood-rpc; 
  scgi_pass  127.0.0.1:5000;
  include  scgi_params;
}

This will work on both Sonarr and Transdroid / Transdrone; just configure your _URL Path_, or _SCGI mount point_ as '/RPC2'.

All 8 comments

I'm afraid this is something Flood shouldn't handle. Sorry.

That's a shame. Thank you for responding!

@Codehhh It seems the better you can do is ask your seedbox provider to support flood in addition of ruTorrent.

Sorry to revive this dead thread, but I figured I'd share my solution. This can be handled entirely via your proxy / web server.

Expose the mount point via relevant configuration here. Obviously, you'll want to protect this with basic authentication at a minimum; not something you'd want publicly exposed.

Here's the location example from my nginx server config:

location /RPC2 {
  auth_basic  "jive turkey?";
  auth_basic_user_file  /etc/nginx/passwd/flood-rpc; 
  scgi_pass  127.0.0.1:5000;
  include  scgi_params;
}

This will work on both Sonarr and Transdroid / Transdrone; just configure your _URL Path_, or _SCGI mount point_ as '/RPC2'.

@joshau Thank you, I just installed Transdroid with your tips.

@joshau Thanks for posting, but I'm not 100% following. Do I have to add this endpoint on my seedbox, or on my local webserver?

You probably have a server where you installed rTorrent + flood. So you have rTorrent (the torrent client) that is exposing a local scgi socket (default is localhost:5000), then you have flood (a webui for rTorrent) that use the scgi socket to manage torrent, flood also expose a local http server with nodejs (default is localhost:3000) and finally you have nginx that is a better http server that you are using as a reverse proxy to expose the flood traffic on internet (from localhost:3000 to yourdomain.org on port 80/443).

Here you add a second RPC mountpoint that is also capturing the scgi socket (localhost:5000) from rTorrent and you are directly exposing it on internet (that's why you need to protect it at least with a basic auth and a https connection).

So the code @joshau gave us is to add in your nginx conf of your virtual-sever (also called vhost by apache) or create a new virtual-server. Then you'll need to give to Sonarr or Transdroid or any app the domain where is RPC mountpoint is exposed (ex: yourdomain.org) + the location of the RPC mountpoint (/RPC2) + you basic auth credentials.

Is that more clear to you now @Codehhh ?

Ah, that makes sense. My rTorrent + ruTorrent are run off of a seed box where I can't edit the Apache / nginx config

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NoLooseEnds picture NoLooseEnds  路  6Comments

noeuse picture noeuse  路  5Comments

noraj picture noraj  路  3Comments

angristan picture angristan  路  4Comments

randomnonsense picture randomnonsense  路  5Comments