UNPKG

gypsum

Version:

Simple and easy lightweight typescript server side framework on Node.js.

29 lines (28 loc) 780 B
import { ILoggerOptions } from './misc/logger'; export interface IServerConfigOptions { server_name: string; port: number; domain: string; host: string; secure: boolean; statics: string[]; spa: string; files_data_dir: string; processes: number | 'max'; cookie_key: string; upload_size_limit_mb: number; logger_options: ILoggerOptions | null; logger_out_dir: string; } export declare type IServerConfig = { [key in keyof IServerConfigOptions]?: IServerConfigOptions[key]; }; export interface IGypsumConfig { dev: IServerConfig; prod: IServerConfig; } export interface IGypsumConfigurations { dev?: IServerConfig; prod?: IServerConfig; } export declare const Config: IGypsumConfig;