Skip to content

Settings hostname and port in earls #6

@remagio

Description

@remagio

I'm proposing a change in how earls manage httpd settings. Actually it sets only PORT, using default * for hostname (binding all local IPs).
Actually earls use in main():

app.listen(process.env.PORT || 3000);

It could be useful if it's using earls ENV if defined, by example:

EARLS_PORT=3000
EARLS_HOSTNAME="127.0.0.1"
…
…
app.listen(process.env.EARLS_PORT || 3000, process.env.EARLS_HOSTNAME || "" );
…
…

if I'm not mispelling and hostname not define it will use: *:3000 or *:EARLS_PORT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions