Possible to Bind to single IP #10

Closed
andrewkro opened this Issue Oct 18, 2012 · 2 comments

Projects

None yet

3 participants

@andrewkro

Would it be possible to add a config.address parameter allowing you to specify a specific port to bind to?

Ive made the change on my local, in worker.js, lines 351 and 368 to:

ipv4HttpServer.listen(config.port, config.address);
...
ipv4HttpsServer.listen(config.https.port, config.https.address);

Might be useful for others.

Andrew

@jpetazzo
Contributor

This is a good idea. It would be an interesting enhancement, and it is easy to implement.

We have no plan to work on that in the short term (since our production Hipache cluster is on EC2, and EC2 supports only 1 IP address per machine), but this would be a low hanging fruit if someone wants to contribute some code.

@dmp42 dmp42 added this to the 0.4 milestone Mar 20, 2014
@dmp42 dmp42 self-assigned this Mar 20, 2014
@dmp42 dmp42 added a commit that referenced this issue Apr 21, 2014
@dmp42 dmp42 Config && dry-run work
- now sports a config class that can do all sort of magic / preparation / legacy handling
- new command line flag -d (--dry) that just tries to load the config and exit (will catch a number of config errors, although not all) - need extra work
- new http / https configuration syntax that allows binding individually on any number of ips / port, with specific certificates
- fixes #4 (but not SNI yet)
- fixes #10
- on the road to fix #122
70016ab
@dmp42 dmp42 referenced this issue Apr 21, 2014
Closed

0.4 #128

@dmp42 dmp42 added a commit that closed this issue Apr 29, 2014
@dmp42 dmp42 Config && dry-run work
- now sports a config class that can do all sort of magic / preparation / legacy handling
- new command line flag -d (--dry) that just tries to load the config and exit (will catch a number of config errors, although not all) - need extra work
- new http / https configuration syntax that allows binding individually on any number of ips / port, with specific certificates
- fixes #4 (but not SNI yet)
- fixes #10
- on the road to fix #122
57d2e3c
@dmp42 dmp42 closed this in 57d2e3c Apr 29, 2014
@dmp42
Member
dmp42 commented Apr 29, 2014

It's on master (-> 0.4) (#143).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment