Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Configuration

Christian Smith edited this page · 5 revisions
Clone this wiki locally

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

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.

LOCAL-UI

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.

REDIS

OAuth2Server uses Redis for persistent storage and for session storage. Configuration requires two properties, a url and auth password.

EXAMPLE

{
  "port": 8080,
  "local-ui": "ui/dist",
  "redis": {
    "url": "redis://HOST:PORT",
    "auth": "PASSWORD"
  }
}
Something went wrong with that request. Please try again.