Page 1 of 1

Clicking 'Add Schedule' switches from HTTPS to HTTP [proxy]

Posted: July 16th, 2015, 5:47 am
by chris-t
I access sabnzbd (v0.7.20) through a reverse proxy over HTTPS, and I've found that adding or removing schedules in config/scheduling changes the URI scheme from HTTPS to HTTP.

For example, to begin with the address in my browser would be https://example.com/sabnzbd/config/scheduling/. But when I click Add Schedule, or click the X next to a schedule to remove it, the URI will change to http://example.com/sabnzbd/config/scheduling/ and display a 404 error (because there is no content at that address on port 80).

Chris

Re: Clicking 'Add Schedule' switches from HTTPS to HTTP

Posted: July 17th, 2015, 4:39 am
by safihre
I cannot reproduce that.. What browser do you use? Could it be the proxy?
Because the way the HTML-Form is set up it will always use the protocol it is opened with.

Re: Clicking 'Add Schedule' switches from HTTPS to HTTP

Posted: July 17th, 2015, 4:47 am
by chris-t
Hi safihre, thanks for the reply. I think you just answered it - it's undoubtedly my proxy setup, as the same behaviour is present in both Chrome and Firefox. I'll have to investigate, and I'll post back the result.

Chris

Re: Clicking 'Add Schedule' switches from HTTPS to HTTP

Posted: July 17th, 2015, 4:56 am
by chris-t
OK, adding the following line to my nginx proxy configuration has sorted the issue:

Code: Select all

proxy_redirect  http://  $scheme://;
I've no idea if this will cause issues with the rest of my setup, but at least I can now use sabnzbd scheduling properly :)