Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.98 KB

config.md

File metadata and controls

38 lines (30 loc) · 1.98 KB

Additional Configuration

Configuration variables

Name Description
"port" Server Port
"tls" Use tls encryption
"ssl" Paths to ssl cert and key files
"corsOrigins" List origins allowed by CORS Policy
"publicUrl" Base-url for front-end
"redis" Redis params
"mongodb" MongoDB params
"mongoose" Mongoose params
"apiDocs" Render rest api documentation
"logger" Winston transport ('json', 'database')
"mailFrom" Email ID
"mailer" Nodemailer configuration (except username and password)
"oAuth2" Passport OAuth2 credentials
"aws" AWS credentials

Override Example

./config/development.js

module.exports = {
  port: 3000,
  publicUrl: 'https://localhost',
  logger: ['database'],
}

See config/default.json for more info.