Flood-UI / flood

A web UI for rTorrent, qBittorrent and Transmission with a Node.js backend and React frontend. Migrate to v4: https://github.com/jesec/flood/wiki/Migrate-from-older-versions-of-Flood.
https://flood.js.org
GNU General Public License v3.0
1.82k stars 173 forks source link

URL path for rtorrent scgi being proxied via nginx #666

Open evilbulgarian opened 6 years ago

evilbulgarian commented 6 years ago

Summary

URL path for rtorrent scgi being proxied via nginx Is there a way to configure a nginx proxy URL to the rtorrent scgi?

Expected Behavior

pass this to docker environment -e RTORRENT_SCGI_HOST=http://gypsyops/tor -e RTORRENT_SCGI_PORT=80

Current Behavior

Passing the http://url/to/scgi/proxy in the RTORRENT_SCGI_HOST environment variable does not work.

Possible Solution

Not sure

Steps to Reproduce (for bugs)

  1. docker run -d --name flood --network lan_1 --ip 10.6.6.253 -p 3000:3000 -e RTORRENT_SCGI_HOST=http://gypsyops/tor -e RTORRENT_SCGI_PORT=80 -v /etc/resolv.conf:/etc/resolv.conf -v /etc/timezone:/etc/timezone --restart=unless-stopped vladi/flood:20180409

Context

Unable to talk to rtorrent running behind nginx proxy

Your Environment

noraj commented 6 years ago

Hello @evilbulgarian,

Thanks for posting your issue, but can you please take time to edit it in order to fill the issue template.

Edited

I'm closing the issue until you fill it.

Feel free to ask to re-open it as soon as it's done.

noraj commented 6 years ago

PS : why are you running docker env vars and not docker run ?

noraj commented 6 years ago

@evilbulgarian Please do not open new issues, let's re-open this one in order to keep all links and tracking.

evilbulgarian commented 6 years ago

@noraj Sorry about that new to this :)

noraj commented 6 years ago

@evilbulgarian When you say does not work. what is the behavior ? What's happening ? Have you some error message or logs ?

evilbulgarian commented 6 years ago

It hangs after creating the account..

❯ docker logs -f flood
npm info it worked if it ends with ok
npm info using npm@4.2.0
npm info using node@v7.8.0
npm info lifecycle flood@1.0.0~prestart: flood@1.0.0
npm info lifecycle flood@1.0.0~start: flood@1.0.0

> flood@1.0.0 start /usr/src/app
> node server/bin/start.js

Flood server starting on http://undefined:3000.

GET / 200 8.350 ms - 543
GET /static/css/main.c8db9a96.css 200 14.776 ms - -
GET /static/js/main.bb3f4a51.js 200 5.989 ms - -
GET /favicon.ico 200 3.420 ms - -
GET /favicon.ico 304 1.620 ms - -
GET /api/activity-stream?historySnapshot=fiveMin 401 1.617 ms - -
GET /auth/verify?1526072972382 200 9.143 ms - 20
POST /auth/register 200 33.541 ms - 203
GET /api/settings 200 1.104 ms - 2
GET /api/client/settings 500 66.434 ms - 158
noraj commented 6 years ago

@evilbulgarian Did you check https://github.com/jfurrow/flood/wiki/Troubleshooting#stuck-after-log-in ?

Are you sure that rtorrent is running?

evilbulgarian commented 6 years ago

Yup, when I do docker exec flood curl http://10.6.6.1/tor it works so it can access the rtorrent scgi proxy