Strapi is not using the configured host when launching the server #5399
Labels
good first issue
Good for newcomers
issue: enhancement
Issue suggesting an enhancement to an existing feature
severity: low
If the issue only affects a very niche base of users and an easily implemented workaround can solve
source: core:strapi
Source is core/strapi package
Describe the bug
Strapi is not using the configured host when spinning up the server
Steps to reproduce the behavior
Even the host that you want to launch your server is configurable but actually Strapi in not using it.
In Strapi.js, Strapi launches the sever by doing
this.server.listen(this.config.port, async err
instead ofthis.server.listen(this.config.port, this.config.host, async err
, which means Node will listen to 0.0.0.0 by default.There was an issue #3525 opened but closed without a fix.
Expected behavior
Strapi should use the host value in config when launching the server.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: