For information on what parameters can be configured, please review lib/config.js.
You can set values via individual environment variables, or you can set CONFIG_FILES to point to JSON files containing settings.
To pass multiple files, concatenate their paths with commas.
Persona Gmail Bridge
A minimal identity bridge for Gmail.
Getting Started
Running is simple:
git clone https://github.com/mozilla/persona-gmail-bridge.gitcd persona-gmail-bridgenpm installnpm startFor local development, set the
SHIMMED_PRIMARIESenvironment variable for gmail.com and googlemail.com before you start up Persona:cd /path/to/personaexport SHIMMED_PRIMARIES='gmail.com|http://127.0.0.1:3000|/path/to/persona-gmail-bridge/var/well-known.json,googlemail.com|http://127.0.0.1:3000|/path/to/persona-gmail-bridge/var/well-known.json'npm startYou’re done!
Visit http://127.0.0.1:10001/ and try signing in with your Gmail account!
Testing
npm testYou’re done!
Configuration
For information on what parameters can be configured, please review lib/config.js.
You can set values via individual environment variables, or you can set
CONFIG_FILESto point to JSON files containing settings. To pass multiple files, concatenate their paths with commas.Example:
Local testing shouldn’t require changing any settings.
Production deployments must change:
server.publicUrlandserver.personaUrlcert.pubKeyPathandcert.privKeyPathsession.secretProduction deployments may want to change:
server.portandserver.hostlogPathproxy.hostandproxy.portstatsd.enabled,statsd.host, andstatsd.portStatsD
If enabled, the bridge can report statistics via statsd:
Counters
Timers