Date
1 - 5 of 5
Reverse Proxy App on CF
Paul Bakare
Hi,
I understand that gorouter performs the task of a reverse proxy. However, I'll like to know if it's possible to have an app that performs the task of a reverse proxy for other apps (something like a gateway). Would gorouter allow this? I've tested this locally. It works. But when I deploy to CF, it doesn't. Returns 404 Here's a test NodeJS app deployed on CF, https://gist.github.com/charyorde/64230d4849e5dec4e1f9 Appreciate your help |
|
James Bayer
app instances in cloud foundry are currently not allowed to route directly
toggle quoted message
Show quoted text
to other app instances. they need to send app-to-app through gorouter, which often also has a load balancer in front of that. On Sun, Oct 11, 2015 at 2:30 AM, Kayode Odeyemi <dreyemi(a)gmail.com> wrote:
Hi, --
Thank you, James Bayer |
|
Paul Bakare
Thanks James
toggle quoted message
Show quoted text
they need to send app-to-app through gorouter Do you have a sample that I checkout? I've never directly worked with gorouter On Sun, Oct 11, 2015 at 3:49 PM, James Bayer <jbayer(a)pivotal.io> wrote:
app instances in cloud foundry are currently not allowed to route directly |
|
James Bayer
it's pretty simple:
toggle quoted message
Show quoted text
let's say app 1 has a route app1.example.com let's say app 2 has a route app2.example.com in order for app 2 to be a reverse proxy for app 1, the code in app 2 would initiate an http request to app1.example.com, which would likely resolve to the LB, which would send it to one of the available gorouters, which would then send it to app instances backing app 1. On Sun, Oct 11, 2015 at 7:58 AM, Kayode Odeyemi <dreyemi(a)gmail.com> wrote:
Thanks James --
Thank you, James Bayer |
|
Paul Bakare
Great. I can see the corresponding proposals at
toggle quoted message
Show quoted text
https://docs.google.com/document/d/1bGOQxiKkmaw6uaRWGd-sXpxL0Y28d3QihcluI15FiIA/edit# Is this what the [routing-api]( https://github.com/cloudfoundry-incubator/routing-api) addresses? On Sun, Oct 11, 2015 at 6:35 PM, James Bayer <jbayer(a)pivotal.io> wrote:
it's pretty simple: |
|