From 0c7fa42d01337a69dabeda6701f4e3d99b56edb7 Mon Sep 17 00:00:00 2001 From: flightlevel Date: Sat, 14 Jul 2018 14:53:57 +1000 Subject: [PATCH] Add reverse proxy examples --- Reverse-Proxy.md | 53 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Reverse-Proxy.md diff --git a/Reverse-Proxy.md b/Reverse-Proxy.md new file mode 100644 index 0000000..2c365b9 --- /dev/null +++ b/Reverse-Proxy.md @@ -0,0 +1,53 @@ +> Note: These examples assume you are using **_/jackett_** as your **Base URL**. +> If your **Base URL** differs, replace all instances of **_/jackett_** with **_/YourBaseURL_**. +> Along with the steps below, you also need to set a base path override which is present under the configuration section on your Jackett dashboard. + +*** + +**Nginx:** +To configure Nginx as a reverse proxy to forward requests to your Jackett app, modify `/etc/nginx/sites-available/default` + + location /jackett/ { + proxy_pass http://localhost:9117; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection keep-alive; + proxy_set_header Host $host; + proxy_cache_bypass $http_upgrade; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + +*** + +**Apache:** +Configuration files for Apache are located within the `/etc/httpd/conf.d/` directory. + + + Allow from 0.0.0.0 + ProxyPass "http://127.0.0.1:9117/jackett" + ProxyPassReverse "http://127.0.0.1:9117/jackett" + + +*** + +**IIS:** +The below rule assume you have a "virtual directoy" named "jackett" under your default website in IIS. That virtual directory should target a physical directory that resides at `c:\inetpub\wwwroot\jackett`. Within this directory you would place the below rules in a web.config file. There should be no other files in this directory. **_(This is NOT your Jackett install directory)_** + + +``` + + + + + + + + + + + + + + +```