🐛 Fix for ACTUAL_PORT and PORT vars (#4537)

* Fix for ACTUAL_PORT and PORT vars

* md
This commit is contained in:
lelemm
2025-03-04 17:26:45 -03:00
committed by GitHub
parent a2fc6bdd31
commit e0805c125f
2 changed files with 8 additions and 2 deletions

View File

@@ -64,8 +64,8 @@ const configSchema = convict({
port: {
doc: 'Port to run the server on.',
format: 'port',
default: 5006,
env: ['ACTUAL_PORT', 'PORT'],
default: process.env.PORT ? process.env.PORT : 5006,
env: 'ACTUAL_PORT',
},
hostname: {
doc: 'Server hostname.',

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [lelemm]
---
Fix for ACTUAL_PORT and PORT vars