Application configuration

Alexey Gordeyev edited this page Feb 26, 2016 · 11 revisions

Back to Home

Application configuration

/config/configuration.js

module.exports = {
    port : 3000,
    session: {
        maxAge : 8640000,
        key : "trinte",
        secret : "Web-based Application"
    },
    parser : {
        encoding : "utf-8",
        keepExtensions : true
    } ...

Database configuration

/config/database.js

module.exports = {
    db: {
        driver     : "mongoose",
        host       : "localhost",
        port       : "27017",
        username   : "",
        password   : "",
        database   : "trinte-dev"
    } ...

Back to Home