Interface ServerOpt

interface ServerOpt {
    hostname?: string;
    https?: false | {
        cert: Buffer;
        key: Buffer;
    };
    log?: ("error" | "info")[];
    port?: number;
}

Properties

hostname?: string

默认值127.0.0.1

https?: false | {
    cert: Buffer;
    key: Buffer;
}

https配置

log?: ("error" | "info")[]

日志

port?: number

端口