Problems with SABnzbd behind NGINX on Windows

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
sabscott
Newbie
Newbie
Posts: 4
Joined: March 13th, 2021, 11:22 pm

Problems with SABnzbd behind NGINX on Windows

Post 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.
Last edited by sabscott on March 20th, 2021, 10:35 am, edited 4 times in total.
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Problems with SABnzbd behind NGINX on Windows

Post by safihre »

That last bit of code should work, just make sure you have the right hostname and port.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
sabscott
Newbie
Newbie
Posts: 4
Joined: March 13th, 2021, 11:22 pm

Re: Problems with SABnzbd behind NGINX on Windows

Post 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?
Post Reply