let DbConnectionOptions = { server: { poolSize: 20, domainsEnabled: true, socketOptions: { keepAlive: 1 } } }; export class Config { public static DbConnection: string = "mongodb://localhost:27017/test_nodedata"; public static DbConnectionOptions = DbConnectionOptions; public static basePath: string = "data"; public static apiversion: string = "v1"; public static ElasticSearchConnection : string = "http://localhost:9200"; public static ApplyElasticSearch : boolean = false; public static ignorePaths = ['server.js']; public static internalIgnorePaths = ['gulpfile.js']; public static isMultiThreaded = true; // This param is for configuring multi process using worker/ process control attribute.. public static worker = 'worker.js'; public static process = 1; public static isCacheEnabled: boolean = false; // by default caching is false, make it true to enable cahing in your application } export class SqlConfig { public static isSqlEnabled: boolean = false; public static database: string = "test"; public static username: string = "sa"; public static password: string = "Apr@2016"; public static sequlizeSetting: any = { host: '172.19.101.120', dialect: 'mssql', pool: { max: 5, min: 0, idle: 10000 } // SQLite only //storage: 'path/to/database.sqlite' }; } export class Security { public static isAutheticationEnabled = "disabled";//allowed values: "disabled","enabledWithoutAuthorization","enabledWithAuthorization" public static authenticationType = "TokenBased";//allowed values: "passwordBased","TokenBased" public static useFaceBookAuth = false; } export class facebookAuth { public static clientID = '11';// your App ID public static clientSecret = 'aa';// your App Secret public static callbackURL = 'http://localhost:23548/auth/facebook/callback'; }