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.)

gefragt vor 2 Jahren214 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen