From a5ec65bff3f126a0f91a131684773e16f4b858df Mon Sep 17 00:00:00 2001 From: kaso17 Date: Fri, 27 Jul 2018 18:08:42 +0200 Subject: [PATCH] README: add nginx reverse proxy config example --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 0321b73e9..942d7edfa 100644 --- a/README.md +++ b/README.md @@ -373,6 +373,19 @@ Example config for apache: ``` +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 * __Command line switches__