mirror of
https://github.com/Radarr/Radarr
synced 2025-01-03 05:44:50 +00:00
Add nginx instructions
parent
44f16120eb
commit
0aa43a9825
1 changed files with 25 additions and 1 deletions
|
@ -7,4 +7,28 @@ Reverse proxy configuration for Radarr is as simple as most other applications.
|
||||||
</Location>
|
</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.
|
||||||
|
|
Loading…
Reference in a new issue