From 0aa43a98252f98907155b41fdb20473c2b882bb3 Mon Sep 17 00:00:00 2001 From: Bart Marinissen Date: Sun, 16 Jul 2017 14:25:42 +0200 Subject: [PATCH] Add nginx instructions --- Reverse-Proxy.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Reverse-Proxy.md b/Reverse-Proxy.md index fb022ca..1758ec7 100644 --- a/Reverse-Proxy.md +++ b/Reverse-Proxy.md @@ -7,4 +7,28 @@ Reverse proxy configuration for Radarr is as simple as most other applications. ``` -## nginx \ No newline at end of file +## nginx +Reverse proxy configuration for Radarr is done like most other applications. Below is a minimal example, in a standard Nginx install this file should be places in /etc/nginx/sites-available and then symlinked to /etc/nginx/sites-enabled. +``` + server + { + listen 80; + server_name YOUR_DOMAIN; + + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_redirect off; + proxy_set_header Host $http_host; + + location /YOUR_URL_BASE + { + proxy_pass http://localhost:7878; + } + } +``` + +Here `YOUR_DOMAIN` needs to be replaced with the domain you are using to reverse proxy e.g. `radarr.example.com` or `example.com`. If you want nginx to proxy all requests to sonarr, leave out the `server_name` line and change the listen line to `listen 80 default_server`. + +Similarly `YOUR_URL_BASE` needs to be replaced with the URL Base set in radarr's settings. If it is empty, the line should read `location /`. + +After reloading nginx you should now be able to find radarr at http://YOUR_DOMAIN/YOUR_URL_BASE.