You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adrian Rangel edited this page Jan 29, 2015
·
5 revisions
In order to run notifier in a prodution environment, some configuration is needed via environment variables.
Server configuration
NODE_ENV: Set to production on production server.Defaults to development
PORT: port where notifier will be listening. Defaults to 9001
LOCALE: i18n locale to consider for templates. Refer to source/translations/lib to see which locales are currently supported.
MONGO_URL: URL to your MongoDB solution to persist notifications and fetch user preferences. For DemocracyOS notifications, use the same database where users are persisted.
ACCESS_TOKEN: API key for notifier clients.
Services
MANDRILL_TOKEN: API token for if you're using Mandrill
MANDRILL_FROM_EMAIL: for mails via Mandrill, this specifies the email address for the sender of outgoing mails (e.g.: noreply@democracyos.org)
MANDRILL_FROM_NAME: for mails via Mandrill, this specifies the name for the sender of outgoing mails (e.g.: The DemocracyOS team).
LOGENTRIES_TOKEN: API key for logging to logentries
HOOK_URL and HOOK_TOKEN: set these up if you're using resthooks
TWILIO_ACCOUNT_SID and TWILIO_ACCOUNT_TOKEN: set these up if using twilio
GOOGLE_SERVER_API_KEY: for Android notification service.
APPLE_CERT and APPLE_KEY: for Apple's APN service.