Config file documentation for @campgroundbooking/core

logo

Utilizes node-convict and is expecting overrides per env in config/env.json

config env arg format doc default
env NODE_ENV --node-env undefined The applicaton environment development
version String The application version number 2.16.136
rawHttp RAW_HTTP Boolean Run in raw Http, useful for testing webhooks false
name APPLICATION_NAME String Name of this server for services like new relic CampgroundBooking - Unknown
publicServer PUBLIC_SERVER String The applicaton server domain http://localhost:3000
publicApiServer PUBLIC_API_SERVER String The API server domain https://localhost:6001
allowedReferers Array Allowed raw referer's in authentication app.campgroundbooking.com
sentryDSN SENTRY_PUBLIC_DSN String Public Sentry DSN ``

Config Section for newrelic

config env arg format doc default
key NEWRELIC_KEY String The new relic license key a129dab8feeebdf3240efd1f427b54c488a50dbf

Config Section for server

config env arg format doc default
host SERVER_HOST dnsName This server's host name localhost
port SERVER_PORT port port to bind 5555
key SERVER_KEY undefined SSL key file ./localhost.key
crt SERVER_CERT undefined SSL cert file ./localhost.crt
sessionId SERVER_SESSION_ID String Server session id key campgroundbooking

Config Section for files

config env arg format doc default
base FILES_BASE String Absolute base directory for files to be stored /app/src/core/uploads

Config Section for tokens

config env arg format doc default
cert TOKENS_CERT String JWT cert file to salt all JWT tokens strong-jwt-cert-goes-here
expiresIn TOKENS_EXPIRES_IN range Range for when tokens expire (see ms.js) 1 day

Config Section for user

config env arg format doc default
salt USER_SALT String User password salt, should be crpyptographically strong null

Config Section for redis

config env arg format doc default
host REDIS_HOSTNAME String Redis hostname 127.0.0.1
port REDIS_PORT Number Redis port 6379
password REDIS_PASSWORD String Redis password ``

Config Section for mongo

config env arg format doc default
url MONGO_URL String MongoDB connection string mongodb://localhost:27017/
database MONGO_DB String MongoDB database name campgroundbooking
replicaSet String MongoDB Replica Set name ``
authSource String MongoDB authentication databse, will use default database if not set ``

Config Section for elastic

config env arg format doc default
url ELASTICSEARCH_URL String ElasticSearch connection string http://localhost:9200
username ELASTICSEARCH_USERNAME String ElasticSearch connection username undefined
password ELASTICSEARCH_PASSWORD String ElasticSearch connection password undefined

Config Section for banking

Config Section for stripe

config env arg format doc default
clientId STRIPE_CLIENT_ID String Stripe client_id, see stripe connect documentation ``
clientSecret STRIPE_CLIENT_SECRET String Stripe client_secret, see stripe connect documentation ``
statementDescriptor STATEMENT_DESCRIPTOR format Descriptor to appear on credit card statements campgroundbooking

Config Section for accounting

Config Section for quickbooks

config env arg format doc default
clientId QUICKBOOKS_CLIENT_ID String Quickbooks client_id ``
clientSecret QUICKBOOKS_CLIENT_SECRET String Quickbooks client_secret ``
endpointsUrl QUICKBOOKS_ENDPOINTS_URL String Quickbooks endpoints well known url ``
redirectUri QUICKBOOKS_REDIRECT_URI String Quickbooks redirect Uri ``
baseUrl QUICKBOOKS_BASE_URL String Quickbooks Base URL ``
scopes QUICKBOOKS_SCOPES Array Quickbooks scopes ``

Config Section for sendgrid

config env arg format doc default
id SENDGRID_API_ID String Sendgrid email sending enabled id null
key SENDGRID_API_KEY String Sendgrid email sending enabled key null

Config Section for postmark

config env arg format doc default
key POSTMARK_API_KEY String Postmark email sending enabled key null

Config Section for authentication

Config Section for facebook

config env arg format doc default
clientId FACEBOOK_CLIENT_ID String Facebook client id (see facebook documentation) null
clientSecret FACEBOOK_CLIENT_SECRET String Facebook client secret (see facebook documentation) null

Config Section for google

config env arg format doc default
clientId GOOGLE_CLIENT_ID String Google client id (see google documentation) null
clientSecret GOOGLE_CLIENT_SECRET String Google client secret (see google documentation) null

Config Section for twitter

config env arg format doc default
consumerKey TWITTER_CONSUMER_KEY String Twitter consumer key (see twitter documentation) null
consumerSecret TWITTER_CONSUMER_SECRET String Twitter consumer secret (see twitter documentation) null

Config Section for email

Config Section for company

config env arg format doc default
name String Name of company sending emails Nomad Reservations, LLC.
address String Mailing address of company sending emails 412 N Main St. Ste 100, Buffalo, WY 82834

Config Section for mapbox

config env arg format doc default
accessToken MAPBOX_ACCESS_TOKEN String Mapbox access token ``

Config Section for hereAPI

config env arg format doc default
autocompletUri String Here Maps AutocompleteURI http://autocomplete.geocoder.api.here.com/6.2/
geocoderUri String Here Maps GeocoderURI https://geocoder.api.here.com/6.2/
placesUri String Here Maps PlacesURI https://places.api.here.com/places/v1/places/
routingUri String Here Maps RoutingURI https://route.api.here.com/routing/7.2/
id HERE_API_ID String Here Maps API app id ``
code HERE_API_CODE String Here Maps API app access code ``

Config Section for aws

config env arg format doc default
accessKeyId AWS_ACCESS_KEY_ID String AWS S3 ClientId foo
secretAccessKey AWS_SECRET_ACCESS_KEY String AWS ClientSecret foos
region AWS_REGION String AWS Region ``

Config Section for s3

config env arg format doc default
edgeEndpoint AWS_S3_EDGE_ENDPOINT String AWS S3 edge endpoint ``
endpoint AWS_S3_ENDPOINT String AWS S3 connection string http://localhost:4572
bucket AWS_S3_BUCKET String AWS S3 bucket cb-development
prefix AWS_S3_PREFIX String AWS S3 prefix for all files for this system ``

Config Section for google

config env arg format doc default
clientId GOOGLE_CLIENT_ID String Google Client ID ``
projectId GOOGLE_PROJECT_ID String Google Project ID ``
authUri GOOGLE_AUTH_URI String Google Auth URI https://accounts.google.com/o/oauth2/auth
tokenUri GOOGLE_TOKEN_URI String Google Token URI https://oauth2.googleapis.com/token
authProviderx509CertUrl GOOGLE_x509_CERT_URL String Google Provider x509 Cert Url https://www.googleapis.com/oauth2/v1/certs
clientSecret GOOGLE_CLIENT_SECRET String Google Client Secret ``
redirectUris GOOGLE_REDIRECT_URIS Array Google Redirect URIs ``

Example env.json

{
  "env": "development",
  "version": "2.16.136",
  "rawHttp": "⬆ see-format",
  "name": "CampgroundBooking - Unknown",
  "publicServer": "http://localhost:3000",
  "publicApiServer": "https://localhost:6001",
  "allowedReferers": [
    "app.campgroundbooking.com"
  ],
  "sentryDSN": "⬆ see-format",
  "newrelic": {
    "key": "a129dab8feeebdf3240efd1f427b54c488a50dbf"
  },
  "server": {
    "host": "localhost",
    "port": 5555,
    "key": "./localhost.key",
    "crt": "./localhost.crt",
    "sessionId": "campgroundbooking"
  },
  "files": {
    "base": "/app/src/core/uploads"
  },
  "tokens": {
    "cert": "strong-jwt-cert-goes-here",
    "expiresIn": "1 day"
  },
  "user": {
    "salt": "⬆ see-format"
  },
  "redis": {
    "host": "127.0.0.1",
    "port": 6379,
    "password": "⬆ see-format"
  },
  "mongo": {
    "url": "mongodb://localhost:27017/",
    "database": "campgroundbooking",
    "replicaSet": "⬆ see-format",
    "authSource": "⬆ see-format"
  },
  "elastic": {
    "url": "http://localhost:9200",
    "username": "⬆ see-format",
    "password": "⬆ see-format"
  },
  "banking": {
    "stripe": {
      "clientId": "⬆ see-format",
      "clientSecret": "⬆ see-format",
      "statementDescriptor": "campgroundbooking"
    }
  },
  "accounting": {
    "quickbooks": {
      "clientId": "⬆ see-format",
      "clientSecret": "⬆ see-format",
      "endpointsUrl": "⬆ see-format",
      "redirectUri": "⬆ see-format",
      "baseUrl": "⬆ see-format",
      "scopes": []
    }
  },
  "sendgrid": {
    "id": "⬆ see-format",
    "key": "⬆ see-format"
  },
  "postmark": {
    "key": "⬆ see-format"
  },
  "authentication": {
    "facebook": {
      "clientId": "⬆ see-format",
      "clientSecret": "⬆ see-format"
    },
    "google": {
      "clientId": "⬆ see-format",
      "clientSecret": "⬆ see-format"
    },
    "twitter": {
      "consumerKey": "⬆ see-format",
      "consumerSecret": "⬆ see-format"
    }
  },
  "email": {
    "company": {
      "name": "Nomad Reservations, LLC.",
      "address": "412 N Main St. Ste 100, Buffalo, WY 82834"
    }
  },
  "mapbox": {
    "accessToken": "⬆ see-format"
  },
  "hereAPI": {
    "autocompletUri": "http://autocomplete.geocoder.api.here.com/6.2/",
    "geocoderUri": "https://geocoder.api.here.com/6.2/",
    "placesUri": "https://places.api.here.com/places/v1/places/",
    "routingUri": "https://route.api.here.com/routing/7.2/",
    "id": "⬆ see-format",
    "code": "⬆ see-format"
  },
  "aws": {
    "accessKeyId": "foo",
    "secretAccessKey": "foos",
    "region": "⬆ see-format",
    "s3": {
      "edgeEndpoint": "⬆ see-format",
      "endpoint": "http://localhost:4572",
      "bucket": "cb-development",
      "prefix": "⬆ see-format"
    }
  },
  "google": {
    "clientId": "⬆ see-format",
    "projectId": "⬆ see-format",
    "authUri": "https://accounts.google.com/o/oauth2/auth",
    "tokenUri": "https://oauth2.googleapis.com/token",
    "authProviderx509CertUrl": "https://www.googleapis.com/oauth2/v1/certs",
    "clientSecret": "⬆ see-format",
    "redirectUris": []
  }
}