Make a Node.js web app reachable | NodeFlux.eu Docs
Bind an Express, Fastify, or similar app to the service port provided by the panel.
Steps
- Read the assigned port from the service details in the manager.
- Configure the application to use the supplied PORT environment value when available, with a safe local fallback for development.
- Bind the server to 0.0.0.0 inside the container instead of only localhost.
- Start the service and check the log for a line confirming the listening port.
- Test the public host and assigned port from a browser or HTTP client.
Notes
- Do not hard code port 3000, 80, or 443 unless the service panel assigns that exact port.
- Keep one HTTP app per assigned service port unless your application explicitly handles multiple listeners.
Warning
If the app listens only on localhost, it may work inside the container but remain unreachable to users.
Related NodeFlux pages
- Deploy a Node.js application from files — Upload a small Node.js project, install its dependencies, and start it safely.
- Configure environment variables and secrets — Keep bot tokens, API keys, and connection strings out of your source code.
- Run a small API service — Host a small Express/Fastify style HTTP service using the assigned port.