1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-22 10:42:47 +01:00

Added Config for Nginx reverse proxy

Jacob 'BoomShadow' Tirey 2017-03-17 09:26:14 -04:00
parent 4d7295fa0b
commit 8d1b3c3739

@ -1,3 +1,36 @@
# Linux / OSX
## Prerequisites
- Install Nginx or Apache
- Optional: have an SSL certificate. A free one can be obtained using ["Let's Encrypt"](https://letsencrypt.org/)
## Nginx Conf
Nginx is by far, easier to setup a reverse proxy. Depending on your distro, the location of the Nginx conf or access log may be different than what's shown below. Please use these as a guide.
### HTTP (non-SSL)
Create a new config here: `/etc/nginx/sites-enabled/sonarr.your-domain.xyz`
With the following contents:
server {
listen 80;
server_name sonarr.your-domain.xyz;
location / {
proxy_pass http://127.0.0.1:8989;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
}
access_log /var/log/nginx/sonarr.your-domain.xyz;
}
Reload Nginx: `nginx -s reload`
# Windows
## Variant 1: Setting the URL base in the UI ## Variant 1: Setting the URL base in the UI
1. Go to Settings -> General 1. Go to Settings -> General