Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iQbit ignores base URL to access qb's API. #17

Open
Nexxkinn opened this issue Sep 20, 2020 · 3 comments
Open

iQbit ignores base URL to access qb's API. #17

Nexxkinn opened this issue Sep 20, 2020 · 3 comments

Comments

@Nexxkinn
Copy link

I have a setup where every web app is assosiated with base url instead of port.

it works fine with standard webui, but it doesn't in iQbit. Looking at the network request, turns out your script ignores base url, causing wrong url path.

@GrandArth
Copy link

May i ask how did you config your qb's default webui so that it assosiated with a url?
I tried to do it for /qb but failed, all request was direct to /.

@Nexxkinn
Copy link
Author

Nexxkinn commented Oct 28, 2020

May i ask how did you config your qb's default webui so that it assosiated with a url?
I tried to do it for /qb but failed, all request was direct to /.

I'm using a reverse proxy to achieve that.

Since It's just a single-page web app and the web app doesn't have any mechanism to use base_URL, it's way simpler to just proxy the base url into the port.

In this case, I'm using HAProxy since it was simpler to config and readable enough for me.

frontend proxy
    bind *:80
    acl qb path_beg -i /qb
    use_backend qb-be if qb

backend qb-be
    http-request replace-path /qb/(.*) /\1
    server rutorrent-server __private_ip__:__port__

@GrandArth
Copy link

GrandArth commented Oct 28, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants