Page 1 of 1

Problems with SABnzbd behind NGINX on Windows

Posted: March 17th, 2021, 10:21 pm
by sabscott
I attempted following the wiki herein. I could not get it to work. A couple things on this...

1) Doesn't nginx need to know where these files are?

2) Moreover, I already have server/port info in nginx.conf; couldn't I then reduce the sabnzbd conf file and note where it is in nginx.conf?

I also found the following code to place into nginx.conf. This is similar to what I use for radarr/sonarr, but not as complete.

Code: Select all

	location /sab {
		proxy_pass http://127.0.0.1:8085/sab/;
		client_max_body_size 10m;	
		client_body_buffer_size 128k;

		#Timeout if the real server is dead
		proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;

		# Advanced Proxy Config
		send_timeout 5m;
		proxy_read_timeout 240;
		proxy_send_timeout 240;
		proxy_connect_timeout 240;

		# Basic Proxy Config
		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 X-Forwarded-Proto https;
		proxy_redirect  http://  $scheme://;
		proxy_http_version 1.1;
		proxy_set_header Connection "";
		proxy_cache_bypass $cookie_session;
		proxy_no_cache $cookie_session;
		proxy_buffers 32 4k;
	}
Proper direction for Windows-based setup would be appreciated on this. Thanks.

Re: Problems with SABnzbd behind NGINX on Windows

Posted: March 18th, 2021, 12:36 am
by safihre
That last bit of code should work, just make sure you have the right hostname and port.

Re: Problems with SABnzbd behind NGINX on Windows

Posted: March 18th, 2021, 9:49 am
by sabscott
safihre wrote: March 18th, 2021, 12:36 am That last bit of code should work, just make sure you have the right hostname and port.
Okay. Does this mean I would not need to create the conf files the sabnzbd wiki indicates to do?