Configuration¶
Indigo is configured via a JSON file. The following snippet is an example configuration. Each field is expanded upon within this page, and a JSON schema is available in the backend repo.
Note
This config will not function right out of the box. Please read the documentation here, misconfiguration or reused defaults may result in unexpected or undesired behavior.
{
"database": {
"dsn": "indigo:correct-horse-battery-staple@tcp(db.example.com:3306)/indigo?charset=utf8mb4"
},
"authentication": {
"hmacKey": "this-property-is-required-and-must-be-at-least-64-characters-long",
"ldap": {
"url": "ldaps://dc1.example.com:636",
"domain": "AD",
"searchBase": "CN=Users,DC=ad,DC=example,DC=com",
"username": "CN=IndigoServiceAcct,CN=Users,DC=ad,DC=example,DC=com",
"password": "correct-horse-battery-staple"
},
"local": {}
}
}
Config files should be mounted to the container filesystem at
/var/indigo/config.json.
Updated Example File Structure
For those using the template compose.yml provided
in Installation, you may place config.json in ./config/.
- 📁 indigo
- 🐳 compose.yml
- 📁 config
- ⚙️ config.json
- 📁 data
- 📁 indigo
- 📁 mariadb
If the config file must reside in a different location,
the environment variable INDIGO_CONFIG_LOCATION can be used to specify
an alternate location.
database¶
Indigo requires a connection to a relational database. Use this property to configure connection details.
database.dsn¶
Your DSN string for database connection. Only MariaDB is supported at the moment. See https://github.com/go-sql-driver/mysql#dsn-data-source-name for string syntax.
Example
Those using the default compose.yml should specify this variable like so:
"dsn": "user:pass@tcp(db:3306)/indigo"
user and pass with the values configured in compose.yml.
authentication¶
Options for authentication methods. hmacKey and at
least one configuration mode must be specified.
authentication.hmacKey¶
The HMAC512 key used for signing and verifying issued JWT cookies. The key must be at least 64 characters in length.
Danger
DO NOT utilize the default secret. This secret is the root of trust for all cookies issued by the system. If a secret is compromised, bad actors will have the ability to create and sign their own cookies.
authentication.ldap¶
Configuration set for LDAP authentication. Useful in workplaces utilizing Active Directory; enables single-sign on for users.
authentication.ldap.url¶
The URL of your LDAP server or Domain Controller.
authentication.ldap.domain¶
The domain prefix of your Active Directory instance. See https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/assigning-domain-names for more information.
authentication.ldap.searchBase¶
The search base to use when selecting users.
authentication.ldap.username¶
The username of an LDAP account with permissions to query user information.
authentication.ldap.password¶
The service account's password.
authentication.local¶
Enables local creation and storage of users without single sign on. Not
recommended except in cases where Active Directory is not available. There's no
properties present to configure this authenticator, so to enable this option,
simply specify an empty object as the key's value ({}).