这是indexloc提供的服务,不要输入任何密码
Skip to content

Add Support for HTTPS to Server #523

@pritchey

Description

@pritchey

For some self-hosted environments, everything much utilize encryption even if it rides the loopback interface. Therefore, the server which executes must support both running in HTTP and HTTPS mode.

This pull request modifies server/index.js to provide users the ability to enable HTTPS by making a change to the .env (configuration) file. The configuration file mod adds a flag to indicate the desire to enable HTTPS and the path/filename for the key and cert to be used.

Logging output has been updated to include whether or not the server is being launched as an HTTP or HTTPS server, as well as when the code is about to load the key/cert file.

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