Open xrd opened 1 year ago
I got to the same point and it seems like newsblur_web
is doing 302 http://DOMAIN
instead of simply serving the content.
Have you managed to find the solution? Im really starting to doubt if newsblur is the right choice after seeing how the config, deployment and IoC is handled. Its actually surprising it works at all...
Well for me that proxy fix (noted above) works great. I'm not happy with having to do it that way, but it's working great. And, newsblur is fantastic in so many ways with so much functionality that it feels like a little thing.
I'm assuming yes
Hi, I ran into the same issue as @TobiaszCudnik had mentioned.
After hours of debugging, I found that there is a hard-coded HTTP redirection in /apps/reader/views.py
:
https://github.com/samuelclay/NewsBlur/blob/be9bbbd349c92e7b608e4b52715f3334522ba37f/apps/reader/views.py#L155
Also, this block of code will take the subdomain as a username if it's not added to ALLOWED_SUBDOMAINS
in apps/reader/views.py
, result in a redirection loop:
https://github.com/samuelclay/NewsBlur/blob/be9bbbd349c92e7b608e4b52715f3334522ba37f/apps/reader/views.py#L143-L160
I want to run newsblur behind an nginx proxy. I've been struggling to do this.
It endlessly redirects when I hit the site in browser, incorrectly sending me to the http site again, which loops. But, curl from the docker host machine (hitting localhost) works on http and returns the content. Nginx does not work from a remote proxy machine.
The simple fix is to specify localhost in the proxy header:
But, I suspect this is not the correct way to do it. I wanted to file this bug to further discussion.
Here is what I did:
bash ./utils/custom_domain.sh mycustomdomainzzzzzzzz.com
script./usr/bin/security
) are no longer needed in generating certs.I suspect there is something (perhaps in the python code?) that determines the server is answering on http (which is correct because I'm pointing to the http service) and then assumes (wrongly in this case) that it should issue a redirect to HTTPS, but it isn't doing that correctly. IMHO.
When I use curl -vvv http://mycustomdomainzzzzzzzzzz.com/ (from the proxy machine) it always issues a 302 back to the http service, not HTTPS.
But, hitting the server from the docker host using localhost does respond correctly with the NewsBlur HTML.
Interesting headers in there...
Here is the nginx configuration:
Here is the diff from NewsBlur:master.