Advertisement
tronyx86

org-v2.conf

May 15th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 8.31 KB | None | 0 0
  1. server {
  2.         listen 80;
  3.         server_name tronflix.app;
  4.         return 301 https://$host$request_uri;
  5. }
  6.  
  7. server {
  8.         listen 443 ssl http2;
  9.         include /config/nginx/ssl.conf;
  10.         include /config/nginx/headers.conf;
  11.         index index.html index.htm index.php;
  12.         server_name tronflix.app;
  13.  
  14.         include /config/nginx/geoblock.conf;
  15.  
  16.         error_page 400 401 402 403 404 405 408 500 502 503 504 $scheme://$server_name/?error=$status;
  17.  
  18.         # Deny access to all .ht files
  19.         location ~ /\.ht {
  20.           deny all;
  21.         }
  22.  
  23.         # Home location block (Organizr v2)
  24.         location ^~ / {
  25.           include /config/nginx/proxy.conf;
  26.           proxy_pass http://192.168.1.103:8889;
  27.         }
  28.  
  29.         # Auth block
  30.         location ~ /auth-(.*) {
  31.           internal;
  32.           proxy_pass http://192.168.1.103:8889/api/?v1/auth&group=$1;
  33.           proxy_set_header Content-Length "";
  34.         }
  35.  
  36.         # Sonarr location block
  37.         location /sonarr/ {
  38.           #auth_request /auth-1;
  39.           include /config/nginx/proxy.conf;
  40.           proxy_pass http://192.168.1.103:8989/sonarr/;
  41.           proxy_set_header Host $host;
  42.           proxy_set_header Accept-Encoding "";
  43.           sub_filter '</head>' '<link rel="stylesheet" type="text/css" href="//rawgit.com/iFelix18/Darkerr/master/darkerr.css"> <link rel="stylesheet" type="text/css" href="//rawgit.com/iFelix18/Darkerr/master/logo_animation.css"> <link rel="stylesheet" type="text/css" href="//rawgit.com/iFelix18/Darkerr/master/hidden_searchbar.css"></head>';
  44.           sub_filter_once on;
  45.         }
  46.  
  47.         # Sonarr API block
  48.         location /sonarr/api {
  49.           include /config/nginx/proxy.conf;
  50.           proxy_pass http://192.168.1.103:8989/sonarr/api;
  51.           proxy_set_header X-Forwarded-Host $server_name;
  52.           proxy_set_header X-Forwarded-Ssl on;
  53.         }
  54.  
  55.         # Radarr location block
  56.         location /radarr/ {
  57.           #auth_request /auth-1;
  58.           include /config/nginx/proxy.conf;
  59.           proxy_pass http://192.168.1.103:7878/radarr/;
  60.           proxy_set_header Host $host;
  61.           proxy_set_header Accept-Encoding "";
  62.           sub_filter '</head>' '<link rel="stylesheet" type="text/css" href="//rawgit.com/iFelix18/Darkerr/master/darkerr.css"><link rel="stylesheet" type="text/css" href="//rawgit.com/iFelix18/Darkerr/master/hidden_searchbar.css"></head>';
  63.           sub_filter_once on;
  64.         }
  65.  
  66.         # Radarr API block
  67.         location /radarr/api {
  68.           include /config/nginx/proxy.conf;
  69.           proxy_pass http://192.168.1.103:7878/radarr/api;
  70.           proxy_set_header X-Forwarded-Host $server_name;
  71.           proxy_set_header X-Forwarded-Ssl on;
  72.         }
  73.  
  74.         # Tautulli location block
  75.         location /tautulli/ {
  76.           #auth_request /auth-1;
  77.           include /config/nginx/proxy.conf;
  78.           proxy_pass http://192.168.1.103:8181/tautulli/;
  79.           add_header X-Frame-Options SAMEORIGIN;
  80.         }
  81.  
  82.         # Tautulli API location block
  83.         location /tautulli/api {
  84.           include /config/nginx/proxy.conf;
  85.           proxy_pass http://192.168.1.103:8181/tautulli/api;
  86.           proxy_set_header X-Forwarded-Host $server_name;
  87.           proxy_set_header X-Forwarded-Ssl on;
  88.         }
  89.  
  90.         # Tautulli Self-Hosted Newsletter
  91.         location /tautulli/newsletter {
  92.           auth_request off;
  93.           proxy_pass http://192.168.1.103:8181/tautulli/newsletter;
  94.           include /config/nginx/proxy.conf;
  95.           proxy_set_header X-Forwarded-Host $server_name;
  96.           proxy_set_header X-Forwarded-Ssl on;
  97.          }
  98.  
  99.         # Tautulli Self-Hosted Images
  100.         location /tautulli/image {
  101.           auth_request off;
  102.           proxy_pass http://192.168.1.103:8181/tautulli/image;
  103.           proxy_set_header X-Forwarded-Host $server_name;
  104.           proxy_set_header X-Forwarded-Ssl on;
  105.           include /config/nginx/proxy.conf;
  106.         }
  107.  
  108.         # Ombi location block
  109.         location /ombi/ {
  110.           #auth_request /auth-4;
  111.           include /config/nginx/proxy.conf;
  112.           proxy_pass http://192.168.1.103:3579/ombi/;
  113.           add_header X-Frame-Options SAMEORIGIN;
  114.         }
  115.  
  116.         # NetData location redirect
  117.         location /netdata {
  118.           return 301 /netdata/;
  119.         }
  120.  
  121.         # NetData location block
  122.         location ~ /netdata/(?<ndpath>.*) {
  123.           proxy_redirect off;
  124.           proxy_set_header Host $host;
  125.           proxy_set_header X-Forwarded-Host $host;
  126.           proxy_set_header X-Forwarded-Server $host;
  127.           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  128.           proxy_http_version 1.1;
  129.           proxy_pass_request_headers on;
  130.           proxy_set_header Connection "keep-alive";
  131.           proxy_store off;
  132.           proxy_pass http://netdata-upstream/$ndpath$is_args$args;
  133.  
  134.           gzip on;
  135.           gzip_proxied any;
  136.           gzip_types *;
  137.         }
  138.  
  139.         # Custom Netdata for TronFlix
  140.         location /customnetdata {
  141.           root /config/www;
  142.           index custom.html;
  143.         }
  144.  
  145.         # Jackett location redirect block
  146.         location /jackett {
  147.           return 301 /jackett/;
  148.         }
  149.  
  150.         # Jackett location block
  151.         location /jackett/ {
  152.           #auth_request /auth-1;
  153.           include /config/nginx/proxy.conf;
  154.           rewrite /jackett/(.*) /$1 break;
  155.           proxy_pass http://192.168.1.103:9117/jackett;
  156.           proxy_set_header Host $host;
  157.           proxy_set_header X-Forwarded-Host $server_name;
  158.         }
  159.  
  160.         # NzbGet location block
  161.         location /nzbget {
  162.           #auth_request /auth-1;
  163.           include /config/nginx/proxy.conf;
  164.           proxy_pass http://autobot.yocum.local:6789;
  165.           proxy_set_header Accept-Encoding "";
  166.           sub_filter '</head>' '<link rel="stylesheet" type="text/css" href="//rawgit.com/ydkmlt84/DarkerNZBget/master/nzbget_custom_darkblue.css"></head>';
  167.           sub_filter_once on;
  168.         }
  169.  
  170.         # NzbHydra location redirect block
  171.         location /nzbhydra {
  172.           return 301 /nzbhydra/;
  173.         }
  174.  
  175.         # NzbHydra location block
  176.         location /nzbhydra/ {
  177.           #auth_request /auth-1;
  178.           include /config/nginx/proxy.conf;
  179.           proxy_pass http://192.168.1.103:5075/nzbhydra/;
  180.         }
  181.  
  182.         # Deluge location block
  183.         location /deluge {
  184.           #auth_request /auth-1;
  185.           include /config/nginx/proxy.conf;
  186.           proxy_set_header X-Deluge-Base "/deluge/";
  187.           proxy_pass http://torbox:8112/;
  188.         }
  189.  
  190.         # Guacamole location block
  191.         location /guacamole {
  192.           #auth_request /auth-1;
  193.           include /config/nginx/proxy.conf;
  194.           proxy_set_header Upgrade $http_upgrade;
  195.           proxy_set_header Connection "upgrade";
  196.           proxy_set_header Host $http_host;
  197.           proxy_set_header X-NginX-Proxy true;
  198.           proxy_pass http://192.168.1.103:8080;
  199.         }
  200.  
  201.         #PLEX location blocks
  202.         # Serve the CSS code
  203.         location /web {
  204.           include /config/nginx/proxy.conf;
  205.           proxy_pass http://192.168.1.4:32400;
  206.         }
  207.  
  208.         # Main /plex rewrite
  209.         # Proxy request to Plex Server
  210.         location /plex {
  211.           include /config/nginx/proxy.conf;
  212.           proxy_pass http://192.168.1.4:32400/web;
  213.         }
  214.  
  215.         # Logarr location block
  216.         location /logarr {
  217.           #auth_request /auth-1;
  218.           include /config/nginx/proxy.conf;
  219.           add_header X-Frame-Options SAMEORIGIN;
  220.           proxy_set_header Host $host;
  221.           proxy_pass http://192.168.1.103:8000/;
  222.         }
  223.  
  224.         # Portainer redirect location block
  225.         location /portainer {
  226.           return 301 /portainer/;
  227.         }
  228.  
  229.         # Portainer location block
  230.         location /portainer/ {
  231.           #auth_request /auth-1;
  232.           include /config/nginx/proxy.conf;
  233.           proxy_set_header Connection "";
  234.           proxy_pass http://portainer-upstream/;
  235.         }
  236.  
  237.         # Portainer websocket location block
  238.         location /portainer/api/websocket/ {
  239.           #auth_request /auth-1;
  240.           include /config/nginx/proxy.conf;
  241.           proxy_set_header Upgrade $http_upgrade;
  242.           proxy_set_header Connection "upgrade";
  243.           proxy_pass http://portainer-upstream/api/websocket/;
  244.         }
  245. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement