Advertisement
Guest User

Untitled

a guest
Oct 11th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 6.67 KB | None | 0 0
  1.  
  2. worker_processes  1;
  3.  
  4. events {
  5.     worker_connections  1024;
  6. }
  7.  
  8.  
  9. http {
  10.     include       mime.types;
  11.     default_type  application/octet-stream;
  12.  
  13.     sendfile        on;
  14.     keepalive_timeout  65;
  15.  
  16.  
  17.     server {
  18.         listen       80;
  19.         server_name  example.com localhost;
  20.         root   html/Organizr;
  21.  
  22.         location / {
  23.             root   html;
  24.             index index.php index.html index.htm;
  25.         }
  26.  
  27.         error_page   500 502 503 504  /50x.html;
  28.         location = /50x.html {
  29.             root   html;
  30.         }
  31.  
  32.         location ~ \.php$ {
  33.         root html;
  34.         fastcgi_pass 127.0.0.1:9000;
  35.         fastcgi_index index.php;
  36.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  37.         include fastcgi_params;
  38.         }
  39.  
  40.  
  41.         #PLEX
  42.     #Serve the CSS code
  43.     location /web {
  44.         proxy_set_header X-Forwarded-Ssl on;
  45.         proxy_set_header Host $host:$server_port;
  46.         proxy_set_header X-Real-IP $remote_addr;
  47.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  48.         proxy_set_header X-Forwarded-Proto $scheme;
  49.         proxy_redirect  http://  $scheme://;
  50.         proxy_http_version 1.1;
  51.         proxy_set_header Connection "";
  52.         proxy_cache_bypass $cookie_session;
  53.         proxy_no_cache $cookie_session;
  54.         proxy_buffers 32 16k;
  55.         proxy_pass http://127.0.0.1:32400;
  56.     }
  57.  
  58.     #Main /plex rewrite
  59.     #Proxy request to Plex Server
  60.     location /plex {
  61.         proxy_set_header X-Forwarded-Ssl on;
  62.         proxy_set_header Host $host:$server_port;
  63.         proxy_set_header X-Real-IP $remote_addr;
  64.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  65.         proxy_set_header X-Forwarded-Proto $scheme;
  66.         proxy_redirect  http://  $scheme://;
  67.         proxy_http_version 1.1;
  68.         proxy_set_header Connection "";
  69.         proxy_cache_bypass $cookie_session;
  70.         proxy_no_cache $cookie_session;
  71.         proxy_buffers 32 16k;
  72.         proxy_pass http://127.0.0.1:32400/web;
  73.     }
  74.  
  75. }
  76.  
  77.  
  78. ###Insert all Reverse Proxies Here###
  79.  
  80.  
  81. #SONARR
  82.     server {
  83.         listen 80;
  84.         server_name sonarr.example.com;
  85.  
  86.     location / {
  87.         proxy_pass http://127.0.0.1:8989;
  88.         proxy_http_version 1.1;
  89.         proxy_set_header Upgrade $http_upgrade;
  90.         proxy_set_header Connection "upgrade";
  91.         proxy_set_header Host $http_host;
  92.         proxy_set_header X-Real-IP $remote_addr;
  93.         proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
  94.         proxy_set_header X-Forward-Proto http;
  95.         proxy_set_header X-Nginx-Proxy true;
  96.         proxy_redirect off;
  97.         proxy_set_header Accept-Encoding "";
  98.         sub_filter
  99.             '</head>'
  100.             '<link rel="stylesheet" type="text/css" href="//rawgit.com/iFelix18/Darkerr/master/darkerr.css">
  101.             <link rel="stylesheet" type="text/css" href="//rawgit.com/iFelix18/Darkerr/master/hidden_searchbar.css">
  102.             </head>';
  103.         sub_filter_once on;
  104.  
  105.         }
  106.     }
  107.  
  108.  
  109. #RADARR
  110.     server {
  111.         listen 80;
  112.         server_name radarr.example.com;
  113.  
  114.     location / {
  115.         proxy_pass http://127.0.0.1:8089;
  116.         proxy_http_version 1.1;
  117.         proxy_set_header Upgrade $http_upgrade;
  118.         proxy_set_header Connection "upgrade";
  119.         proxy_set_header Host $http_host;
  120.         proxy_set_header X-Real-IP $remote_addr;
  121.         proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
  122.         proxy_set_header X-Forward-Proto http;
  123.         proxy_set_header X-Nginx-Proxy true;
  124.         proxy_redirect off;
  125.         proxy_set_header Accept-Encoding "";
  126.     sub_filter
  127.         '</head>'
  128.         '<link rel="stylesheet" type="text/css" href="//rawgit.com/iFelix18/Darkerr/master/darkerr.css">
  129.         <link rel="stylesheet" type="text/css" href="//rawgit.com/iFelix18/Darkerr/master/hidden_searchbar.css">
  130.         </head>';
  131.     sub_filter_once on;
  132.  
  133.         }
  134.     }
  135.  
  136.  
  137. #TAUTULLI
  138.     server {
  139.         listen 80;
  140.         server_name tautulli.example.com;
  141.  
  142.     location / {
  143.         proxy_pass http://127.0.0.1:8181;
  144.         proxy_set_header Host $host;
  145.         proxy_set_header X-Forwarded-Host $server_name;
  146.         proxy_set_header X-Real-IP $remote_addr;
  147.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  148.         proxy_read_timeout 90;
  149.         proxy_set_header X-Forwarded-Proto $scheme;
  150.         set $xforwardedssl "off";
  151.         if ($scheme = https) {
  152.           set $xforwardedssl "on";
  153.     }
  154.         proxy_set_header X-Forwarded-Ssl $xforwardedssl;
  155.         proxy_redirect ~^(http(?:s)?://)([^:/]+)(?::\d+)?(/.*)?$ $1$2:$server_port$3;
  156.         }
  157.     }
  158.  
  159.  
  160. #OMBI
  161.     server {
  162.         listen 80;
  163.         server_name ombi.example.com;
  164.  
  165.     location / {
  166.         proxy_pass http://127.0.0.1:5000;
  167.         proxy_set_header Host $host;
  168.         proxy_set_header X-Forwarded-Host $server_name;
  169.         proxy_set_header X-Real-IP $remote_addr;
  170.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  171.         proxy_set_header X-Forwarded-Ssl on;
  172.         proxy_set_header X-Forwarded-Proto $scheme;
  173.         proxy_read_timeout  90;
  174.         proxy_redirect http://127.0.0.1:5000 https://$host;
  175.         }
  176.     }
  177.  
  178.  
  179. #Jackett
  180.     server {
  181.         listen 80;
  182.         server_name jackett.example.com;
  183.  
  184.     location / {
  185.         proxy_pass http://127.0.0.1:9117;
  186.         proxy_http_version 1.1;
  187.         proxy_set_header Upgrade $http_upgrade;
  188.         proxy_set_header Connection "upgrade";
  189.         proxy_set_header Host $http_host;
  190.         proxy_set_header X-Real-IP $remote_addr;
  191.         proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
  192.         proxy_set_header X-Forward-Proto http;
  193.         proxy_set_header X-Nginx-Proxy true;
  194.         proxy_redirect off;
  195.  
  196.         }
  197.     }
  198.  
  199.  
  200. #qBitTorrent
  201.     server {
  202.         listen 80;
  203.         server_name qbt.example.com;
  204.  
  205.     location / {
  206.         proxy_pass http://127.0.0.1:1280;
  207.         proxy_http_version 1.1;
  208.         proxy_hide_header X-Frame-Options;
  209.         proxy_set_header Upgrade $http_upgrade;
  210.         proxy_set_header Connection "upgrade";
  211.         proxy_set_header Host $http_host;
  212.         proxy_set_header X-Real-IP $remote_addr;
  213.         proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
  214.         proxy_set_header X-Forward-Proto http;
  215.         proxy_set_header X-Nginx-Proxy true;
  216.         proxy_redirect off;
  217.  
  218.         }
  219.     }
  220.  
  221.  
  222. #Pi-Hole
  223.     server {
  224.         listen 80;
  225.         server_name ph.example.com;
  226.  
  227.     location / {
  228.         proxy_pass http://127.0.0.1:1280;
  229.         proxy_http_version 1.1;
  230.         proxy_hide_header X-Frame-Options;
  231.         proxy_set_header Upgrade $http_upgrade;
  232.         proxy_set_header Connection "upgrade";
  233.         proxy_set_header Host $http_host;
  234.         proxy_set_header X-Real-IP $remote_addr;
  235.         proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
  236.         proxy_set_header X-Forward-Proto http;
  237.         proxy_set_header X-Nginx-Proxy true;
  238.         proxy_redirect off;
  239.  
  240.         }
  241.     }
  242. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement