Documentation
Overview
API Reference
Getting Started
Installation
Configuration Options

Configuration

Environment Variables

The dabih API server reads the following Environment Variables:

`CONFIG` Specifies the location of the yaml config file, details are described below. Default will be `./config.yaml`

`EPHEMERAL_SECRET` (Optional) If an external ephemeral store is used this secret will be used to encrypt the storage and protect sensitve keys.

`DATABASE_SECRET` (Optional) The password for an external SQL based database. Not required if you are using sqlite.

config.yaml

All other configuration is read from the config.yaml file.


server:
  protocol: http
  host: localhost
  port: 8088

admins:
  subs:
    - mhuttner
  groups:
    - dabih

# Generate root keys by calling 'npm run rootKey'
crypto:
  rootKeys:
  - kty: RSA
    'n': >-
      4YYnnoKUZr9_XkcB8xKUeTLoHGundC....
    e: AQAB

# Configure where to store temporary data
ephemeral:
  # adapter can be 'memcached' or 'memory'
  adapter: 'memcached'
  memcachedUrl: 'localhost:11211'

# Sequelize configuration
# see https://sequelize.org/docs/v6/getting-started/#connecting-to-a-database

# Example Postgres database
database:
  dialect: postgres
  logging: false
  host: postgres.spang-lab.de
  port: 5432
  database: dabih 
  username: postgresuser

# Example SQLite database
database:
  dialect: sqlite
  logging: false 
  storage: ./data/dabih.sqlite

# Configure where the files will be stored
storage:
  backend: local
  path: ./data