README: add nginx reverse proxy config example

This commit is contained in:
kaso17
2018-07-27 18:08:42 +02:00
parent c4e3aa8a64
commit a5ec65bff3

View File

@@ -373,6 +373,19 @@ Example config for apache:
</Location> </Location>
``` ```
Example config for nginx:
```
location /jackett {
proxy_pass http://127.0.0.1:9117;
proxy_set_header Host $host;
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_set_header X-Forwarded-Host $host;
proxy_redirect off;
}
```
## Troubleshooting ## Troubleshooting
* __Command line switches__ * __Command line switches__