parse-server-example icon indicating copy to clipboard operation
parse-server-example copied to clipboard

How to set a proxy for the database access

Open threegoblins opened this issue 10 years ago • 0 comments

I apologise as this isn't really an issue for Parse Server directly, it's a configuration question, but I expect any answer will help others too.

I have setup MongoDB on ObjectRocket, and Parse Server on Heroku. ObjectRocket uses an IP whitelist, and Heroku doesn't ensure a static IP address. So the Parse Server can't connect to the database.

I have added one of the "Add Ons" to achieve a static IP address (called Fixie) so that Parse Server can access the database, however it doesn't "just work", it looks like I need to somehow tell Parse Server (by editing the nodejs somewhere) the proxy address.

I am hoping a kind soul might tell me how to do that in a matter of minutes, I expect it will be a simple option addition in one of the files (perhaps an edit of ExportAdaptor.js?) but I am struggling to find where/what and it looks like it might take me a long time still.

Thanks in advance to anyone who can solve this or suggest a better alternative solution! (Maybe I should just host mongodb directly on Heroku? But I already paid ObjectRocket and they had a reduction for Parse migrations).

threegoblins avatar Mar 04 '16 14:03 threegoblins