[Not Solved]
Mar 21, 2021, 06:20 PM
(This post was last modified: Mar 21, 2021, 07:39 PM by cableghost.)
I have NGINX installed on a Windows-based VM. nginx -t indicates good configuration. Radarr/Sonarr configurations work. Below is my present code. Any suggestions?
I've tried variations of...
location /sab
http://127.0.0.1:8085
Edit: I should note... I can access SABnzbd via 192.168.1.199:8085, I just cannot do so thru nginx, ie. 192.168.1199/sab
I've tried variations of...
location /sab
http://127.0.0.1:8085
Edit: I should note... I can access SABnzbd via 192.168.1.199:8085, I just cannot do so thru nginx, ie. 192.168.1199/sab
Code:
server {
listen 80;
server_name localhost 192.168.1.199;
location / {
root html;
index index.html index.htm;
}
location /sab/ {
proxy_pass http://127.0.0.1:8085/sab;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /sonarr {
proxy_pass http://127.0.0.1:8989/sonarr;
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 Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
}
location /radarr {
proxy_pass http://127.0.0.1:7878/radarr;
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 Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
}
location /qbt/ {
proxy_pass http://127.0.0.1:8080/;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Host $http_host;
http2_push_preload on; # Enable http2 push
}