Skip to content

Latest commit

 

History

History
56 lines (51 loc) · 1.17 KB

Configuration.md

File metadata and controls

56 lines (51 loc) · 1.17 KB

Configuration

This project uses the library node-config which supports config file hierarchy and the NODE_CONFIG environment variable.

Example of the default config file:

{
  "websiteUrl": "http://localhost:8080",
  "log": {
    "console": {
      "level": "debug",
      "timestamp": true,
      "colorize": true
    }
  },
  "redis":{
    "url": "//localhost:7379"
  },
  "koa": {
    "port": 9000,
    "apiBasePath": "/api/v1/",
    "cookieSecret": ["your-super-session-secret"],
    "staticContent": ["build"],
    "logger": true,
    "cors":{
      "credentials": true
    }
  },
  "db":{
    "url": "postgres://postgres:password@localhost:6432/dev?sslmode=disable",
    "options": {
      "logging": true
    }
  },
  "jwt": {
    "secret": "I love shrimp with mayonnaise",
    "options": {
      "expiresIn": "15 days"
    }
  },
  "mail": {
    "from": "StarHackIt <[email protected]>",
    "signature": "The Team",
    "smtp": {
      "service": "Mailgun",
      "auth": {
        "user": "[email protected]",
        "pass": "11111111111111111111"
      }
    }
    
  }
}