Skip to content

Commit 4f637a3

Browse files
author
Alan Shaw
authored
fix: use correct env var for HTTP_PORT (#200)
1 parent 2d4638e commit 4f637a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function makeConfig () {
4747

4848
peerAnnounceAddr: process.env.PEER_ANNOUNCE_ADDR,
4949
port: process.env.PORT ? parseInt(process.env.PORT) : 3000,
50-
httpPort: process.env.HTTP_PORT ? parseInt(process.env.PORT) : 3001,
50+
httpPort: process.env.HTTP_PORT ? parseInt(process.env.HTTP_PORT) : 3001,
5151

5252
// p2p
5353
p2pConnectionMaxConnections: process.env.P2P_CONNECTION_MAX_CONNECTIONS ? parseInt(process.env.P2P_CONNECTION_MAX_CONNECTIONS) : 10e3,

test/config.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ t.test('config - all by env vars', async t => {
147147
peerIdS3Region: 'aws-s3',
148148
peerAnnounceAddr: '/dns4/elastic-dev.dag.house/tcp/443/wss',
149149
port: 3123,
150-
httpPort: 3123,
150+
httpPort: 3258,
151151
p2pConnectionMaxConnections: 99999,
152152
p2pConnectionMinConnections: 1,
153153
p2pConnectionPollInterval: 1000,

0 commit comments

Comments
 (0)