mirror of
https://github.com/Jackett/Jackett
synced 2025-01-22 07:29:19 +00:00
Add reverse proxy examples
parent
fba8ccc2b9
commit
0c7fa42d01
1 changed files with 53 additions and 0 deletions
53
Reverse-Proxy.md
Normal file
53
Reverse-Proxy.md
Normal file
|
@ -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.
|
||||
|
||||
<Location /jackett>
|
||||
Allow from 0.0.0.0
|
||||
ProxyPass "http://127.0.0.1:9117/jackett"
|
||||
ProxyPassReverse "http://127.0.0.1:9117/jackett"
|
||||
</Location>
|
||||
|
||||
***
|
||||
|
||||
**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)_**
|
||||
|
||||
|
||||
```
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<rewrite>
|
||||
<rules>
|
||||
<remove name="ReverseProxyInboundRuleJackett" />
|
||||
<rule name="ReverseProxyInboundRuleJackett" stopProcessing="true">
|
||||
<match url="(.*)" />
|
||||
<action type="Rewrite" url="http://localhost:9117/jackett/{R:1}" />
|
||||
</rule>
|
||||
</rules>
|
||||
</rewrite>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
```
|
Loading…
Reference in a new issue