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

질문됨 2년 전210회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠