linnovate / meanio

meanio core module
MIT License
54 stars 73 forks source link

Consider hostname specified in env config file #76

Closed marcandrews closed 4 years ago

marcandrews commented 8 years ago

My VPS has two IPs, and when I start my MEAN app, the server listens on both IPs. This way, the MEAN app takes into consideration the hostname specified in the env config file when starting the server.

clowenhg commented 7 years ago

My concern is for sites that are using the hostname config items for building urls, without the intention of limiting their server to only listening to a specific hostname.

We should update this to have a flag that can be turned on to tell it to use the hostname for the listen call.