Ferdi Duschka
Ferdi Duschka

Reputation: 46

Elastic Beanstalk running multiple api's on different ports

I have a Nodejs app that includes both an express api and a web socket api. The express app runs on port 3000 and the web socket api on port 3001. I have the entire node app running on an elastic beanstalk instance and want the express app to be accessed via the subdomain api.example.com and the web socket api via ws.example.com. How can I achieve this using route 53 and elastic beanstalk?

Upvotes: 1

Views: 318

Answers (1)

Ferdi Duschka
Ferdi Duschka

Reputation: 46

Fixed it by running both api's on the same port using the http module!

Upvotes: 1

Related Questions