# ServerSettingsService Service

Module
import { ServerSettingsService } from "@tsed/common"
Source/packages/common/src/config/services/ServerSettingsService.ts

# Overview

class ServerSettingsService extends DIConfiguration {
    constructor();
    get version(): string;
    set version(v: string);
    get rootDir(): string;
    set rootDir(value: string);
    get port(): string | number | false;
    set port(value: string | number | false);
    get httpsOptions(): Https.ServerOptions;
    set httpsOptions(value: Https.ServerOptions);
    get httpPort(): string | number | false;
    set httpPort(value: string | number | false);
    get httpsPort(): string | number | false;
    set httpsPort(value: string | number | false);
    get uploadDir(): string;
    set uploadDir(value: string);
    get env(): Env;
    set env(value: Env);
    get mount(): IServerMountDirectories;
    set mount(value: IServerMountDirectories);
    get componentsScan(): string[];
    set componentsScan(value: string[]);
    get statics(): IServerMountDirectories;
    set statics(value: IServerMountDirectories);
    get serveStatics(): IServerMountDirectories;
    set serveStatics(value: IServerMountDirectories);
    get acceptMimes(): string[];
    set acceptMimes(value: string[]);
    get debug(): boolean;
    set debug(debug: boolean);
    get routers(): IRouterSettings;
    set routers(options: IRouterSettings);
    get validationModelStrict(): boolean;
    set validationModelStrict(value: boolean);
    get logger(): Partial<ILoggerSettings>;
    set logger(value: Partial<ILoggerSettings>);
    get exclude(): string[];
    set exclude(exclude: string[]);
    get controllerScope(): ProviderScope;
    set controllerScope(scope: ProviderScope);
    get errors(): IErrorsSettings;
    set errors(options: IErrorsSettings);
    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

get version(): string

set version(v: string)

get rootDir(): string

set rootDir(value: string)

get port(): string | number | false

set port(value: string | number | false)

get httpsOptions(): Https.ServerOptions

set httpsOptions(value: Https.ServerOptions)

get httpPort(): string | number | false

set httpPort(value: string | number | false)

get httpsPort(): string | number | false

set httpsPort(value: string | number | false)

get uploadDir(): string

set uploadDir(value: string)

get env(): Env

set env(value: Env)


set mount(value: IServerMountDirectories)

get componentsScan(): string[]

set componentsScan(value: string[])


set statics(value: IServerMountDirectories)

get serveStatics(): IServerMountDirectories

set serveStatics(value: IServerMountDirectories)

get acceptMimes(): string[]

set acceptMimes(value: string[])

get debug(): boolean

set debug(debug: boolean)

get routers(): IRouterSettings

set routers(options: IRouterSettings)

get validationModelStrict(): boolean

set validationModelStrict(value: boolean)

get logger(): Partial<ILoggerSettings>

set logger(value: Partial<ILoggerSettings>)

get exclude(): string[]

set exclude(exclude: string[])

get controllerScope(): ProviderScope

set controllerScope(scope: ProviderScope)

get errors(): IErrorsSettings

set errors(options: IErrorsSettings)

getHttpPort(): {
     address: string;
     port: number;
 };

setHttpPort(settings: {
     address: string;
     port: number;
 }): void;

getHttpsPort(): {
     address: string;
     port: number;
 };

setHttpsPort(settings: {
     address: string;
     port: number;
 }): void;