Module: utils/httpsUtil

HTTPS Utility for Satoshi Showdown. This module provides functionality to create a secure HTTPS server for the application. It handles the loading of SSL certificates and key files, and configures the HTTPS server with the necessary credentials. This ensures secure communication over the network.

Source:

Requires

Methods

(inner) createServer(app) → {https.Server}

Creates and configures an HTTPS server for the given Express application. Reads the SSL private key and certificate from file paths specified in environment variables. Logs and throws an error if there's an issue with server configuration or file reading.

Parameters:
Name Type Description
app express.Application

The Express application to attach to the HTTPS server.

Source:
Throws:

If there is an error reading the SSL files or creating the server.

Type
Error
Returns:

The created HTTPS server.

Type
https.Server