diff --git a/.env-local b/.env-local index 9d8b682..c175025 100644 --- a/.env-local +++ b/.env-local @@ -19,6 +19,8 @@ LOCAL_RESTURL=http://localhost:5942/v6 # START ACCESS CONTROL +PORT=5942 + # x402 payments required to access this API? X402_ENABLED=true SERVER_BCH_ADDRESS=bitcoincash:qqlrzp23w08434twmvr4fxw672whkjy0py26r63g3d diff --git a/production/docker/temp.js b/production/docker/temp.js index 02ffedc..e6cf119 100644 --- a/production/docker/temp.js +++ b/production/docker/temp.js @@ -5,4 +5,3 @@ setInterval(() => { }, 10000) console.log('Timer started. Printing "hello world" every 10 seconds...') - diff --git a/src/config/env/common.js b/src/config/env/common.js index d7688a1..2887e00 100644 --- a/src/config/env/common.js +++ b/src/config/env/common.js @@ -45,7 +45,7 @@ const basicAuthDefaults = { export default { // Server port - port: process.env.PORT || 5942, + port: parseInt(process.env.PORT, 10) || 5942, // Environment env: process.env.NODE_ENV || 'development',