redbird: Cannot connect to parse server. "Cannot GET /" and 'XMLHttpRequest failed: "Unable to connect to the Parse API"
Hello, I am not 100% sure this is an issue with redbird at all, but I am not able to figure it out. My pal and I are working on getting a store he made working using nodejs, I also am running apache on 8080 and 8443 in order for them to run side by side and am using redbird to handle the requests, but for some reason I am not able to get the store to connect to parse-server, yet parse dash is working fine.
Here is what I am using currently.
`//If URL has/.well-known/, send request to upstream API service var customResolver1 = function(host, url) { if(/^/.well-known//.test(url)){ return ‘http://planetex.press:8080’; } };
//assign high priority customResolver1.priority = 100;
var proxy = new require(‘redbird’)({ port: 80, resolvers: [ customResolver1], secure: true, ssl:{ port: 443 }, })
proxy.register(“www.planetex.press”, “http://www.planetex.press:3000”, { ssl: { key: “/home/planetex/ssl.key”, cert: “/home/planetex/ssl.cert”, } }); proxy.register(“api.planetex.press”, “http://api.planetex.press:3002”,{ ssl: { key: “/home/planetex/domains/api.planetex.press/ssl.key”, cert: “/home/planetex/domains/api.planetex.press/ssl.cert”, } }); proxy.register(“dash.planetex.press”, “http://dash.planetex.press:3001”,{ ssl: { key: “/home/planetex/domains/dash.planetex.press/ssl.key”, cert: “/home/planetex/domains/dash.planetex.press/ssl.cert”, } });`
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 24 (13 by maintainers)
Btw, you may be interested in this: https://github.com/OptimalBits/redbird/commit/997626cd1221a6e5314def664e036350b9a4caef
I need to implement the automatic renewal procedure and more testing, but other than that this is mostly finished.