Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name tronflix.app;
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl http2;
- include /config/nginx/ssl.conf;
- include /config/nginx/headers.conf;
- index index.html index.htm index.php;
- server_name tronflix.app;
- include /config/nginx/geoblock.conf;
- error_page 400 401 402 403 404 405 408 500 502 503 504 $scheme://$server_name/?error=$status;
- # Deny access to all .ht files
- location ~ /\.ht {
- deny all;
- }
- # Home location block (Organizr v2)
- location ^~ / {
- include /config/nginx/proxy.conf;
- proxy_pass http://192.168.1.103:8889;
- }
- # Auth block
- location ~ /auth-(.*) {
- internal;
- proxy_pass http://192.168.1.103:8889/api/?v1/auth&group=$1;
- proxy_set_header Content-Length "";
- }
- # Sonarr location block
- location /sonarr/ {
- #auth_request /auth-1;
- include /config/nginx/proxy.conf;
- proxy_pass http://192.168.1.103:8989/sonarr/;
- proxy_set_header Host $host;
- proxy_set_header Accept-Encoding "";
- 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>';
- sub_filter_once on;
- }
- # Sonarr API block
- location /sonarr/api {
- include /config/nginx/proxy.conf;
- proxy_pass http://192.168.1.103:8989/sonarr/api;
- proxy_set_header X-Forwarded-Host $server_name;
- proxy_set_header X-Forwarded-Ssl on;
- }
- # Radarr location block
- location /radarr/ {
- #auth_request /auth-1;
- include /config/nginx/proxy.conf;
- proxy_pass http://192.168.1.103:7878/radarr/;
- proxy_set_header Host $host;
- proxy_set_header Accept-Encoding "";
- 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>';
- sub_filter_once on;
- }
- # Radarr API block
- location /radarr/api {
- include /config/nginx/proxy.conf;
- proxy_pass http://192.168.1.103:7878/radarr/api;
- proxy_set_header X-Forwarded-Host $server_name;
- proxy_set_header X-Forwarded-Ssl on;
- }
- # Tautulli location block
- location /tautulli/ {
- #auth_request /auth-1;
- include /config/nginx/proxy.conf;
- proxy_pass http://192.168.1.103:8181/tautulli/;
- add_header X-Frame-Options SAMEORIGIN;
- }
- # Tautulli API location block
- location /tautulli/api {
- include /config/nginx/proxy.conf;
- proxy_pass http://192.168.1.103:8181/tautulli/api;
- proxy_set_header X-Forwarded-Host $server_name;
- proxy_set_header X-Forwarded-Ssl on;
- }
- # Tautulli Self-Hosted Newsletter
- location /tautulli/newsletter {
- auth_request off;
- proxy_pass http://192.168.1.103:8181/tautulli/newsletter;
- include /config/nginx/proxy.conf;
- proxy_set_header X-Forwarded-Host $server_name;
- proxy_set_header X-Forwarded-Ssl on;
- }
- # Tautulli Self-Hosted Images
- location /tautulli/image {
- auth_request off;
- proxy_pass http://192.168.1.103:8181/tautulli/image;
- proxy_set_header X-Forwarded-Host $server_name;
- proxy_set_header X-Forwarded-Ssl on;
- include /config/nginx/proxy.conf;
- }
- # Ombi location block
- location /ombi/ {
- #auth_request /auth-4;
- include /config/nginx/proxy.conf;
- proxy_pass http://192.168.1.103:3579/ombi/;
- add_header X-Frame-Options SAMEORIGIN;
- }
- # NetData location redirect
- location /netdata {
- return 301 /netdata/;
- }
- # NetData location block
- location ~ /netdata/(?<ndpath>.*) {
- proxy_redirect off;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-Host $host;
- proxy_set_header X-Forwarded-Server $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_http_version 1.1;
- proxy_pass_request_headers on;
- proxy_set_header Connection "keep-alive";
- proxy_store off;
- proxy_pass http://netdata-upstream/$ndpath$is_args$args;
- gzip on;
- gzip_proxied any;
- gzip_types *;
- }
- # Custom Netdata for TronFlix
- location /customnetdata {
- root /config/www;
- index custom.html;
- }
- # Jackett location redirect block
- location /jackett {
- return 301 /jackett/;
- }
- # Jackett location block
- location /jackett/ {
- #auth_request /auth-1;
- include /config/nginx/proxy.conf;
- rewrite /jackett/(.*) /$1 break;
- proxy_pass http://192.168.1.103:9117/jackett;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-Host $server_name;
- }
- # NzbGet location block
- location /nzbget {
- #auth_request /auth-1;
- include /config/nginx/proxy.conf;
- proxy_pass http://autobot.yocum.local:6789;
- proxy_set_header Accept-Encoding "";
- sub_filter '</head>' '<link rel="stylesheet" type="text/css" href="//rawgit.com/ydkmlt84/DarkerNZBget/master/nzbget_custom_darkblue.css"></head>';
- sub_filter_once on;
- }
- # NzbHydra location redirect block
- location /nzbhydra {
- return 301 /nzbhydra/;
- }
- # NzbHydra location block
- location /nzbhydra/ {
- #auth_request /auth-1;
- include /config/nginx/proxy.conf;
- proxy_pass http://192.168.1.103:5075/nzbhydra/;
- }
- # Deluge location block
- location /deluge {
- #auth_request /auth-1;
- include /config/nginx/proxy.conf;
- proxy_set_header X-Deluge-Base "/deluge/";
- proxy_pass http://torbox:8112/;
- }
- # Guacamole location block
- location /guacamole {
- #auth_request /auth-1;
- include /config/nginx/proxy.conf;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_pass http://192.168.1.103:8080;
- }
- #PLEX location blocks
- # Serve the CSS code
- location /web {
- include /config/nginx/proxy.conf;
- proxy_pass http://192.168.1.4:32400;
- }
- # Main /plex rewrite
- # Proxy request to Plex Server
- location /plex {
- include /config/nginx/proxy.conf;
- proxy_pass http://192.168.1.4:32400/web;
- }
- # Logarr location block
- location /logarr {
- #auth_request /auth-1;
- include /config/nginx/proxy.conf;
- add_header X-Frame-Options SAMEORIGIN;
- proxy_set_header Host $host;
- proxy_pass http://192.168.1.103:8000/;
- }
- # Portainer redirect location block
- location /portainer {
- return 301 /portainer/;
- }
- # Portainer location block
- location /portainer/ {
- #auth_request /auth-1;
- include /config/nginx/proxy.conf;
- proxy_set_header Connection "";
- proxy_pass http://portainer-upstream/;
- }
- # Portainer websocket location block
- location /portainer/api/websocket/ {
- #auth_request /auth-1;
- include /config/nginx/proxy.conf;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_pass http://portainer-upstream/api/websocket/;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement