1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-07-02 10:22:21 +02:00

Add nginx instructions

Bart Marinissen 2017-07-16 14:25:42 +02:00
parent 44f16120eb
commit 0aa43a9825

@ -7,4 +7,28 @@ Reverse proxy configuration for Radarr is as simple as most other applications.
</Location>
```
## nginx
## 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.