Proxy on AWS App Runner for Vue.js / Express App

0

Trying to run a Vue.js app with a Node.js Express backend on AWS App Runner.

Is there a way to setup a proxy (like nginx) so that the HTTP /api path is routed to a separate container/host through the same domain?

The problem I’m running into: When the Vue.js client app and Express server api are deployed, they run on two separate publicly accessible hosts. I need to setup App Runner to use a proxy so both hosts can be accessed through a single domain using HTTP paths.

(Alternatively, I can enable CORS policy, but A JavaScript app running on port 8080 connecting to a Node.js Express app running on port 5000 is a fairly common pattern. I feel like this is something that App Runner was built to handle, and I’m not sure what I’m missing.)

preguntada hace 2 años214 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas