Skip to content

httpSafePort is not loaded from config when httpSafeOrigin is set #907

@gramakri

Description

@gramakri

Describe the bug
When httpSafeOrigin is set in config.js, httpSafePort is not initialized properly in env.js.

Where did it happen?
I am packaging CryptPad for Cloudron. Found this when making the package.

To Reproduce
Have a config.js like below:

    httpSafeOrigin: `https://some.domain.com`,
    httpSafePort: 3001,

CryptPad does not listen on port 3001 as expected from above config.

Expected behavior
httpSafePort must be loaded from config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions