-
Notifications
You must be signed in to change notification settings - Fork 0
Configuring the application
Marco La Rosa edited this page Aug 12, 2021
·
6 revisions
The application is driven by a JSON configuration file that is loaded by the API. An example to customise can be found at https://github.com/CoEDL/nyingarn-workspace/blob/master/configuration/example-configuration.json.
For development, start by copying that file to development-configuration.json in the configuration folder and then customise as required.
- ui.siteName: customise the name of this site
- api.session.lifetime: an object defining how long a user session can last. Modifiers are "years, months, weeks, days, hours, minutes, seconds"
- api.session.secret: used to sign JWT's - must be at least 32 characters
- administrators: an array of email addresses for accounts that are to be created as super admins when they first log in. Put yourself in before you login the first time otherwise you'll be running sql commands to make yourself an admin.
- authentication[]: an array of authentication providers and the relevant oauth information required for them to work. Each one must have 4 keys: clientId, clientSecret, redirectUri, and discover. Discover is the base path from where the well known oauth2 information is expected to be found.