thefivepack

5pack reverse conf

Apr 3rd, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. # Plex Reverse Proxy
  2. location /plex/ {
  3. proxy_pass http://127.0.0.1:32400/;
  4. proxy_set_header Host $host;
  5. proxy_set_header X-Real-IP $remote_addr;
  6. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  7. proxy_set_header X-Forwarded-Proto $scheme;
  8. proxy_set_header X-Forwarded-Ssl on;
  9.  
  10. # Websockets
  11. proxy_http_version 1.1;
  12. proxy_set_header Upgrade $http_upgrade;
  13. proxy_set_header Connection "upgrade";
  14. }
  15. if ($http_referer ~* /plex/) {
  16. rewrite ^/web/(.*) /plex/web/$1? redirect;
  17. }
  18.  
  19. # Ombi Requests v2
  20. # Be sure to set your Base-URL in Ombi v2
  21. # !! THIS WILL NOT WORK FOR v3 !!
  22. location /ombi {
  23. proxy_pass http://127.0.0.1:5000;
  24. proxy_set_header Host $host;
  25. proxy_set_header X-Real-IP $remote_addr;
  26. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  27. }
  28.  
  29. # Tautulli Reverse proxy
  30. # Be sure to set your Base-URL in Tautulli
  31. location /tautulli {
  32. proxy_pass http://127.0.0.1:8181;
  33. proxy_set_header Host $host;
  34. proxy_set_header X-Real-IP $remote_addr;
  35. proxy_set_header X-Forwarded-Host $server_name;
  36. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  37. proxy_set_header X-Forwarded-Proto $scheme;
  38. proxy_set_header X-Forwarded-Ssl on;
  39. proxy_redirect http:// $scheme://;
  40. proxy_hide_header X-Frame-Options;
  41. # TAUTULLI ALLOW API
  42. location /tautulli/api { auth_request off;
  43. proxy_pass http://127.0.0.1:8181/tautulli/api;
  44. }
  45. # TAUTULLI ALLOW SELFHOSTED NEWLETTER
  46. location /tautulli/newsletter { auth_request off;
  47. proxy_pass http://127.0.0.1:8181/tautulli/newsletter;
  48. }
  49. # TAUTULLI ALLOW SELFHOSTED IMAGES
  50. location /tautulli/image { auth_request off;
  51. proxy_pass http://127.0.0.1:8181/tautulli/image;
  52. }
  53. }
  54.  
  55. # qBittorrent reverse proxy location block
  56.  
  57. location /qbt/ {
  58. proxy_pass http://127.0.0.1:8080/;
  59. proxy_set_header X-Forwarded-Host $server_name:$server_port;
  60. proxy_hide_header Referer;
  61. proxy_hide_header Origin;
  62. proxy_set_header Referer '';
  63. proxy_set_header Origin '';
  64. add_header X-Frame-Options "SAMEORIGIN"; # see note
  65. }
  66.  
  67. ## Note: For some users, several windows in the Web UI will still be blank, such as when adding a new torrent from a URL/magnet or local file.
  68. ## If so, try adding the following line to the location block:
  69. ## add_header X-Frame-Options "SAMEORIGIN";
  70.  
  71. # Radarr Reverse Proxy
  72. # Be sure to set your Base-URL in Radarr
  73. location /radarr {
  74. proxy_pass http://127.0.0.1:7878/radarr;
  75. proxy_set_header X-Real-IP $remote_addr;
  76. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  77. proxy_set_header X-Forwarded-Proto $scheme;
  78. proxy_http_version 1.1;
  79. proxy_no_cache $cookie_session;
  80. # Allow the Radarr API through if you enable Auth on the block above
  81. location /radarr/api { auth_request off;
  82. proxy_pass http://127.0.0.1:7878/radarr/api;
  83. }
  84. }
  85.  
  86. # SABNZBD reverse proxy
  87. location /sabnzbd {
  88. proxy_pass http://127.0.0.1:8085;
  89. proxy_set_header Host $host;
  90. proxy_set_header X-Real-IP $remote_addr;
  91. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  92. }
  93.  
  94.  
  95.  
  96. # Sonarr Reverse Proxy
  97. # Be sure to set your Base-URL in Sonarr
  98. location /sonarr {
  99. proxy_pass http://127.0.0.1:8086/sonarr;
  100. proxy_set_header X-Real-IP $remote_addr;
  101. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  102. proxy_set_header X-Forwarded-Proto $scheme;
  103. proxy_http_version 1.1;
  104. proxy_no_cache $cookie_session;
  105. # Allow the Sonarr API through if you enable Auth on the block above
  106. location /sonarr/api { auth_request off;
  107. proxy_pass http://127.0.0.1:8086/sonarr/api;
  108. }
  109. }
Advertisement
Add Comment
Please, Sign In to add comment