1 parent ea59087 commit 171359dCopy full SHA for 171359d
1 file changed
server.js
@@ -469,7 +469,9 @@ if (entry) {
469
dataDir: process.env.DATA || './data',
470
publicUrl: process.env.PUBLIC_URL || null,
471
});
472
- const { port, origin } = await node.listen(Number(process.env.PORT || 3480));
+ // HOST=127.0.0.1 for reverse-proxy deployments: the proxy is the only
473
+ // client, TRUST_PROXY=1 stays truthful, and the direct port disappears.
474
+ const { port, origin } = await node.listen(Number(process.env.PORT || 3480), process.env.HOST || '0.0.0.0');
475
console.log(`solidpay node listening on port ${port}`);
476
console.log(` app: ${origin}/`);
477
console.log(` api: ${origin}/api/graph`);
0 commit comments