Skip to content

Discrepancy of environment variable names (SERVER vs APP) #71

@JKRhb

Description

@JKRhb

The .env, test.env, and README.md files refer to an environment variable called ZION_SERVER_PORT for configuring the port the Zion server should listen on:

ZION_SERVER_PORT=3000

zion/.env

Line 3 in 5b03e3e

ZION_SERVER_PORT=3000

zion/README.md

Lines 66 to 67 in 5b03e3e

# ZION_SERVER_PORT specifies the port number on which the Zion server will listen for incoming requests.
ZION_SERVER_PORT=3000

However, in the codebase itself, this environment variable is apparently not being used and instead, the AppConfig tries to use the variables ZION_APP_HOST and ZION_APP_PORT instead:

host: this.nestConfigService.get('ZION_APP_HOST', Default.app.host),
port: this.nestConfigService.get('ZION_APP_PORT', Default.app.port),

Is this correct or should ZION_APP_HOST and ZION_APP_PORT be changed to ZION_SERVER_HOST and ZION_SERVER_PORT here (or vice versa)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions