Service
ServerSettingsServiceModule | import { ServerSettingsService } from "@tsed/common" |
---|---|
Source | /packages/common/src/config/services/ServerSettingsService.ts |
Overview
class ServerSettingsService implements IServerSettings, IDISettings {
protected map: Map<;string, any>;;
constructor();
version: string;
rootDir: string;
port: string | number;
httpsOptions: Https.ServerOptions;
httpPort: string | number;
httpsPort: string | number;
uploadDir: string;
env: Env;
mount: IServerMountDirectories;
componentsScan: string[];
serveStatic: IServerMountDirectories;
acceptMimes: string[];
debug: boolean;
routers: IRouterSettings;
validationModelStrict: boolean;
logger: Partial<;ILoggerSettings>;;
exclude: string[];
controllerScope: ProviderScope;
errors: IErrorsSettings;
static getMetadata(target: any): any;
forEach(callbackfn: (value: any, index: string, map: Map<;string, any>;) =>; void, thisArg?: any): void;
set(propertyKey: string | IServerSettings, value?: any): this;
get<;T>;(propertyKey: string): T;
resolve(value: any): any;
getHttpPort(): {
address: string;
port: number;
};
setHttpPort(settings: {
address: string;
port: number;
}): void;
getHttpsPort(): {
address: string;
port: number;
};
setHttpsPort(settings: {
address: string;
port: number;
}): void;
}
Description
ServerSettingsService
contains all information about ServerLoader configuration.
Members
protected map: Map<;string, any>;
version: string
rootDir: string
port: string | number
httpsOptions: Https.ServerOptions
httpPort: string | number
httpsPort: string | number
uploadDir: string
env: Env
mount: IServerMountDirectories
componentsScan: string[]
serveStatic: IServerMountDirectories
acceptMimes: string[]
debug: boolean
routers: IRouterSettings
validationModelStrict: boolean
logger: Partial<;ILoggerSettings>;
exclude: string[]
controllerScope: ProviderScope
errors: IErrorsSettings
static getMetadata(target: any): any
forEach(callbackfn: (value: any, index: string, map: Map<;string, any>;) =>; void, thisArg?: any): void
set(propertyKey: string | IServerSettings, value?: any): this
get<;T>;(propertyKey: string): T
resolve(value: any): any
getHttpPort(): {
address: string;
port: number;
};
setHttpPort(settings: {
address: string;
port: number;
}): void;
getHttpsPort(): {
address: string;
port: number;
};
setHttpsPort(settings: {
address: string;
port: number;
}): void;