Guest User

proxy_inverso

a guest
Oct 14th, 2020
591
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name descargame.local 192.168.1.35;
  4. root /var/www/html;
  5. charset UTF-8;
  6. proxy_cache off;
  7.  
  8. location / {
  9. try_files $uri $uri/ =404;
  10. }
  11.  
  12. location /monit/ {
  13. rewrite ^/monit/(.*) /$1 break;
  14. proxy_ignore_client_abort on;
  15. proxy_pass http://127.0.0.1:2812/;
  16. proxy_set_header Host $host;
  17. proxy_cache off;
  18. allow all;
  19. }
  20.  
  21. location /radarr {
  22. proxy_pass http://127.0.0.1:7878;
  23. proxy_set_header Host $host;
  24. proxy_set_header X-Real-IP $remote_addr;
  25. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  26. proxy_cache off;
  27. proxy_http_version 1.1;
  28. proxy_set_header Upgrade $http_upgrade;
  29. proxy_set_header Connection $http_connection;
  30. }
  31.  
  32. location /sonarr {
  33. proxy_pass http://127.0.0.1:8989;
  34. proxy_set_header Host $host;
  35. proxy_set_header X-Real-IP $remote_addr;
  36. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  37. proxy_cache off;
  38. }
  39.  
  40. location /lidarr {
  41. proxy_pass http://127.0.0.1:8686;
  42. proxy_set_header Host $host;
  43. proxy_set_header X-Real-IP $remote_addr;
  44. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  45. proxy_cache off;
  46. }
  47.  
  48. location /readarr {
  49. proxy_pass http://127.0.0.1:8787;
  50. proxy_set_header Host $host;
  51. proxy_set_header X-Real-IP $remote_addr;
  52. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  53. proxy_cache off;
  54. }
  55.  
  56. location /bazarr {
  57. proxy_pass http://127.0.0.1:6767;
  58. proxy_set_header Host $host;
  59. proxy_set_header X-Real-IP $remote_addr;
  60. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  61. proxy_cache off;
  62. }
  63.  
  64. location /ombi/ {
  65. proxy_pass http://127.0.0.1:5000;
  66. proxy_set_header Host $host;
  67. proxy_set_header X-Forwarded-Host $server_name;
  68. proxy_set_header X-Real-IP $remote_addr;
  69. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  70. proxy_set_header X-Forwarded-Ssl on;
  71. proxy_set_header X-Forwarded-Proto $scheme;
  72. proxy_read_timeout 90;
  73. proxy_redirect http://127.0.0.1:5000 https://$host;
  74. proxy_cache off;
  75. }
  76.  
  77. location /jackett {
  78. proxy_pass http://127.0.0.1:9117;
  79. proxy_set_header X-Real-IP $remote_addr;
  80. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  81. proxy_set_header X-Forwarded-Proto $scheme;
  82. proxy_set_header X-Forwarded-Host $http_host;
  83. proxy_redirect off;
  84. proxy_cache off;
  85. }
  86.  
  87. location /transmission {
  88. proxy_pass http://127.0.0.1:9091;
  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. proxy_cache off;
  93. allow all;
  94. }
  95.  
  96. location /jellyfin {
  97. return 302 $scheme://$host/jellyfin/;
  98. }
  99.  
  100. location /jellyfin/ {
  101.  
  102. # Proxy main Jellyfin traffic
  103.  
  104. # The / at the end is significant.
  105. # https://www.acunetix.com/blog/articles/a-fresh-look-on-reverse-proxy-related-attacks/
  106.  
  107. proxy_pass http://127.0.0.1:8096/;
  108. proxy_redirect default;
  109. proxy_redirect / /jellyfin/;
  110. proxy_pass_request_headers on;
  111.  
  112. proxy_set_header Host $host;
  113.  
  114. proxy_set_header X-Real-IP $remote_addr;
  115. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  116. proxy_set_header X-Forwarded-Proto $scheme;
  117. proxy_set_header X-Forwarded-Host $http_host;
  118.  
  119. proxy_set_header Upgrade $http_upgrade;
  120. proxy_set_header Connection $http_connection;
  121.  
  122. # Disable buffering when the nginx proxy gets very resource heavy upon streaming
  123. proxy_buffering off;
  124. }
  125. }
Add Comment
Please, Sign In to add comment