Configuration lives in json files corresponding to the NODE_ENV. By default, the server looks for config.development.json. In production, it uses config.production.json.
Port should be an integer. It is optional. OAuth2Server first looks for an environment variable called PORT, then it checks for config.port, and finally defaults to 3000.
For registration, login and authorization flows, OAuth2Server provides a default interface made with AngularJS. This can copied and modified, or entirely replaced with a custom app. The local-ui option points to the location of the interface app.
OAuth2Server uses Redis for persistent storage and for session storage. Configuration requires two properties, a url and auth password.