How to use the stores function from nconf
Find comprehensive JavaScript nconf.stores code examples handpicked from public code repositorys.
GitHub: lucakiebel/NodeBB

124 125 126 127 128 129 130 131 132 133
nconf.set('url_parsed', url.parse(nconf.get('url'))); } // Explicitly cast 'jobsDisabled' as Bool var castAsBool = ['jobsDisabled']; nconf.stores.env.readOnly = false; castAsBool.forEach(function (prop) { var value = nconf.get(prop); if (value) { nconf.set(prop, typeof value === 'boolean' ? value : String(value).toLowerCase() === 'true');
+ 3 other calls in file
206 207 208 209 210 211 212 213 214 215 216 217
app.locals.app_port = app_port; // setup the app context var app_context = ''; if (nconf.stores.app.get('app:context') !== undefined) { app_context = '/' + nconf.stores.app.get('app:context'); } // soap setup /**
+ 47 other calls in file