Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 1;
- events {
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- sendfile on;
- keepalive_timeout 65;
- server {
- listen 80;
- server_name example.com localhost;
- root html/Organizr;
- location / {
- root html;
- index index.php index.html index.htm;
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
- location ~ \.php$ {
- root html;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- #PLEX
- #Serve the CSS code
- location /web {
- proxy_set_header X-Forwarded-Ssl on;
- proxy_set_header Host $host:$server_port;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_redirect http:// $scheme://;
- proxy_http_version 1.1;
- proxy_set_header Connection "";
- proxy_cache_bypass $cookie_session;
- proxy_no_cache $cookie_session;
- proxy_buffers 32 16k;
- proxy_pass http://127.0.0.1:32400;
- }
- #Main /plex rewrite
- #Proxy request to Plex Server
- location /plex {
- proxy_set_header X-Forwarded-Ssl on;
- proxy_set_header Host $host:$server_port;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_redirect http:// $scheme://;
- proxy_http_version 1.1;
- proxy_set_header Connection "";
- proxy_cache_bypass $cookie_session;
- proxy_no_cache $cookie_session;
- proxy_buffers 32 16k;
- proxy_pass http://127.0.0.1:32400/web;
- }
- }
- ###Insert all Reverse Proxies Here###
- #SONARR
- server {
- listen 80;
- server_name sonarr.example.com;
- location / {
- proxy_pass http://127.0.0.1:8989;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host $http_host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forward-Proto http;
- proxy_set_header X-Nginx-Proxy true;
- proxy_redirect off;
- 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
- server {
- listen 80;
- server_name radarr.example.com;
- location / {
- proxy_pass http://127.0.0.1:8089;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host $http_host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forward-Proto http;
- proxy_set_header X-Nginx-Proxy true;
- proxy_redirect off;
- 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;
- }
- }
- #TAUTULLI
- server {
- listen 80;
- server_name tautulli.example.com;
- location / {
- proxy_pass http://127.0.0.1:8181;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-Host $server_name;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_read_timeout 90;
- proxy_set_header X-Forwarded-Proto $scheme;
- set $xforwardedssl "off";
- if ($scheme = https) {
- set $xforwardedssl "on";
- }
- proxy_set_header X-Forwarded-Ssl $xforwardedssl;
- proxy_redirect ~^(http(?:s)?://)([^:/]+)(?::\d+)?(/.*)?$ $1$2:$server_port$3;
- }
- }
- #OMBI
- server {
- listen 80;
- server_name ombi.example.com;
- location / {
- proxy_pass http://127.0.0.1:5000;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-Host $server_name;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Ssl on;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_read_timeout 90;
- proxy_redirect http://127.0.0.1:5000 https://$host;
- }
- }
- #Jackett
- server {
- listen 80;
- server_name jackett.example.com;
- location / {
- proxy_pass http://127.0.0.1:9117;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host $http_host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forward-Proto http;
- proxy_set_header X-Nginx-Proxy true;
- proxy_redirect off;
- }
- }
- #qBitTorrent
- server {
- listen 80;
- server_name qbt.example.com;
- location / {
- proxy_pass http://127.0.0.1:1280;
- proxy_http_version 1.1;
- proxy_hide_header X-Frame-Options;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host $http_host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forward-Proto http;
- proxy_set_header X-Nginx-Proxy true;
- proxy_redirect off;
- }
- }
- #Pi-Hole
- server {
- listen 80;
- server_name ph.example.com;
- location / {
- proxy_pass http://127.0.0.1:1280;
- proxy_http_version 1.1;
- proxy_hide_header X-Frame-Options;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host $http_host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forward-Proto http;
- proxy_set_header X-Nginx-Proxy true;
- proxy_redirect off;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement