Skip to content

[ Question ] Reverse proxy domain path to cloud function or AWS Lambda service? #375

Answered by evertramos
Borillion asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @Borillion,

Thanks for your message.

Let me see if I got this right. You have the scenario below:

Container 1 with:

  • "-e VIRTUAL_HOST=someurl.com"

Container 2 with:

  • "-e VIRTUAL_HOST=project_id.cloudfunctions.net"

And you want the container 1 to forward the location '/consumer' to container 2 as of:

https://someurl.com/consumer -> https://project_id.cloudfunctions.net/

If you would be using microservices and have one container to respond for 'someurl.com/consumer ' by itself (not two domains),
you could use path based routing which works perfectly for that. But in this case might mix the 'VIRTUAL_PATH' as you have two domains, did not really tested this...

I would suggest you to o…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Borillion
Comment options

Answer selected by evertramos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #372 on March 08, 2023 23:20.