Skip to content
This repository was archived by the owner on Apr 15, 2019. It is now read-only.

Contribution

yashha edited this page Apr 4, 2016 · 2 revisions

Configuration

The server is configurable in two ways.

  1. With a config file /config/config.json
  2. With environment variables

Config file

NEEDS CONTENT

Environment variables

Build variables:

  • API = 'api.got.show' API host url
  • PREFIXDIR = '/api/' prefix route
  • PROTOCOL = 'https://'
  • ANALYTICS = '<GA>' Google Analytics Code
  • NODE_ENV = production for react optimization

Serve variables:

  • Twitter: access_token, access_token_secret, consumer_key, consumer_secret
  • MONGODB = 'mongodb://localhost/sentiments' MongoDB url - Pattern: mongodb://<user>:<pass>@<server>/<db>
  • api_token_A <= Token for API of Project A

Clone this wiki locally