export const app = new HyperExpress.Server({
max_body_length: 1 * 1024 * 1024
});
app.get("/", (req, res) => {
console.log(req.ip)
res.send("OK!");
});
app.listen(3000, () => {
console.log(`Server running on 3000`);
});
Deployed as node:22 app in docker and opened http://localhost:3000/ which gives below error in browser. No error in docker logs. Works fine without docker.
Hmmm… can't reach this page
The connection was reset.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_RESET