Crypto Server
    Preparing search index...

    Interface Config

    Server configuration loaded from environment variables.

    interface Config {
        host: string;
        port: number;
        protocol: "http" | "https";
        nodeEnv: "production" | "development" | "test";
        logLevel: "error" | "warn" | "info" | "debug";
        apiKey: string | undefined;
        corsOrigins: false | string[];
        trustProxy: false | string[];
        keyDir: string | undefined;
        keyOutDir: string | undefined;
        shutdownTimeoutMs: number;
    }
    Index
    host: string

    Hostname the server binds to (default "localhost").

    port: number

    TCP port the server listens on (0–65535, default 3000).

    protocol: "http" | "https"

    HTTP or HTTPS protocol.

    nodeEnv: "production" | "development" | "test"

    Current Node environment.

    logLevel: "error" | "warn" | "info" | "debug"

    Minimum log verbosity level.

    apiKey: string | undefined

    Optional static API key for service-to-service auth.

    corsOrigins: false | string[]

    Allowed CORS origins, or false to disable CORS.

    trustProxy: false | string[]

    Trusted reverse-proxy CIDRs, or false to trust none.

    keyDir: string | undefined

    Optional directory path for reading crypto keys.

    keyOutDir: string | undefined

    Optional directory path for writing generated keys.

    shutdownTimeoutMs: number

    Graceful shutdown timeout in milliseconds.