mozilla/browserid — Issue #582: improved file based configuration
Author: lloyd
Created: 2011-11-15 19:55:06+00:00
State: open

currently browserid is completely configured via environment variables. There is a mechanism that allows a javascript file to be added to a deployment that will be evaluated in the context of `configuration.js`, however this method is error prone as the author of the file must understand the intricacies of configuration.js, and is prone to break upon updates. Further, the author of the javascript file must duplicate information (like supply a URL and the corresponding hostname).

Ideally we would support an optional configuration JSON file that would be validated at runtime and could overlay settings. Along with this we might choose to simplify configuration JS to more concisely express what ENV vars, and JSON variables are relevant, along with documentation of what they are intended to do.