Organizr / Config-Collections-for-Nginx

A Collection of Functioning Nginx Configurations
GNU General Public License v3.0
155 stars 25 forks source link

Addition to QBitTorrent Reverse Proxy #14

Closed angrycuban13 closed 5 years ago

angrycuban13 commented 5 years ago

The following block will allow you to bypass Org auth for use with nzb360

Credits to: HalianElf

location ^~ /qbt/api {
    auth_request off;
    #resolver 127.0.0.11 valid=30s;
    set $upstream_qbt 192.168.1.4;
    rewrite /qbt(.*) $1 break;
    proxy_pass http://$upstream_qbt:38086;
}
location ^~ /qbt/command {
    auth_request off;
    #resolver 127.0.0.11 valid=30s;
    set $upstream_qbt 127.0.0.1;
    rewrite /qbt(.*) $1 break;
    proxy_pass http://$upstream_qbt:8080;
}
location ^~ /qbt/query {
    auth_request off;
    #resolver 127.0.0.11 valid=30s;
    set $upstream_qbt 127.0.0.1;
    rewrite /qbt(.*) $1 break;
    proxy_pass http://$upstream_qbt:8080;
}
location ^~ /qbt/login {
    auth_request off;
    #resolver 127.0.0.11 valid=30s;
    set $upstream_qbt 127.0.0.1;
    rewrite /qbt(.*) $1 break;
    proxy_pass http://$upstream_qbt:8080;
}
location ^~ /qbt/sync {
    auth_request off;
    #resolver 127.0.0.11 valid=30s;
    set $upstream_qbt 127.0.0.1;
    rewrite /qbt(.*) $1 break;
    proxy_pass http://$upstream_qbt:8080;
}
jrdnlc commented 5 years ago

Make a pull request and I’ll merge to master

HalianElf commented 5 years ago

I can do that

angrycuban13 commented 5 years ago

Pull request created. If I somehow fucked it up Halian will submit a correct PR lol