Is there a way to configure hostname, port, username and password in NodeBB to access the internet via the corporate proxy server?
I only got one, but that is better than nothing right 😛
To resolve this, I changed the Proxy module I was using. It uses less code to implement and works with websockets. I think the NodeBB Node.js proxy documentation is out of date so I'll be submitting a PR with the new method I found.
Working code is as follows:
Another potential GOTCHA here is that this Prixy setup needs to be declared ABOVE the 'body-parser' module (if it's being used). The wrong order will prevent post requests from being proxied.
@jinx glad to hear you got it working :).
Thanks @jarey --- @nightwave, please file an issue on our Github tracker about this.
@baris Yes thank you. Now works.