Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #qBittorrent Reverse Proxy
- location /qbt/ {
- #
- ### error pages ###
- # We only want the Unauthorized code to redirect back to the loginpage
- error_page 401 $scheme://$server_name/?error=$status&return=$request_uri;
- # Responds with the errorpage for the errorcodes listed
- error_page 400 402 403 404 405 408 500 502 503 504 $scheme://$server_name/?error=$status;
- ### end error pages ###
- #
- #Org Auth
- auth_request /auth-0; #=Admin
- proxy_pass http://127.0.0.1:8585/;
- proxy_set_header X-Forwarded-Host $server_name:$server_port;
- proxy_hide_header Referer;
- proxy_hide_header Origin;
- proxy_set_header Referer '';
- proxy_set_header Origin '';
- add_header X-Frame-Options "SAMEORIGIN"; #See comment at the end
- #nzb360 Auth off
- location ^~ /qbt/api {
- auth_request off;
- rewrite /qbt(.*) $1 break;
- proxy_pass http://127.0.0.1:8585;
- }
- location ^~ /qbt/command {
- auth_request off;
- rewrite /qbt(.*) $1 break;
- proxy_pass http://127.0.0.1:8585;
- }
- location ^~ /qbt/query {
- auth_request off;
- rewrite /qbt(.*) $1 break;
- proxy_pass http://127.0.0.1:8585;
- }
- location ^~ /qbt/login {
- auth_request off;
- rewrite /qbt(.*) $1 break;
- proxy_pass http://127.0.0.1:8585;
- }
- location ^~ /qbt/sync {
- auth_request off;
- rewrite /qbt(.*) $1 break;
- proxy_pass http://127.0.0.1:8585;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement