Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. #qBittorrent Reverse Proxy
  2. location /qbt/ {
  3. #
  4. ### error pages ###
  5. # We only want the Unauthorized code to redirect back to the loginpage
  6. error_page 401 $scheme://$server_name/?error=$status&return=$request_uri;
  7. # Responds with the errorpage for the errorcodes listed
  8. error_page 400 402 403 404 405 408 500 502 503 504 $scheme://$server_name/?error=$status;
  9. ### end error pages ###
  10. #
  11. #Org Auth
  12. auth_request /auth-0; #=Admin
  13.  
  14. proxy_pass http://127.0.0.1:8585/;
  15. proxy_set_header X-Forwarded-Host $server_name:$server_port;
  16. proxy_hide_header Referer;
  17. proxy_hide_header Origin;
  18. proxy_set_header Referer '';
  19. proxy_set_header Origin '';
  20. add_header X-Frame-Options "SAMEORIGIN"; #See comment at the end
  21.  
  22. #nzb360 Auth off
  23. location ^~ /qbt/api {
  24. auth_request off;
  25. rewrite /qbt(.*) $1 break;
  26. proxy_pass http://127.0.0.1:8585;
  27. }
  28.  
  29. location ^~ /qbt/command {
  30. auth_request off;
  31. rewrite /qbt(.*) $1 break;
  32. proxy_pass http://127.0.0.1:8585;
  33. }
  34.  
  35. location ^~ /qbt/query {
  36. auth_request off;
  37. rewrite /qbt(.*) $1 break;
  38. proxy_pass http://127.0.0.1:8585;
  39. }
  40.  
  41. location ^~ /qbt/login {
  42. auth_request off;
  43. rewrite /qbt(.*) $1 break;
  44. proxy_pass http://127.0.0.1:8585;
  45. }
  46.  
  47. location ^~ /qbt/sync {
  48. auth_request off;
  49. rewrite /qbt(.*) $1 break;
  50. proxy_pass http://127.0.0.1:8585;
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement