Skip to content

Configuration

ZTH edited this page May 15, 2022 · 1 revision

File Location

By default, Jindai reads configuration file from config.yaml in the same directory as its codes are positioned. This can be overriden with environmental variable CONFIG_FILE.

Scheme

concurrent: 3 # default number of concurrent threads
file_serve:
  'path/': 'http://...' # redirect requests to 'path/' to 'http://...'
allowed_ips:
  'ip-address': 'username' # requests from 'ip-address' will be mapped to user 'username'
mongo: 'mongodb-host'
mongoDbName: 'database-name'
plugins:
- '*' # loads all plugins
- '~Scheduler' # excluding plugins with prefix '~'
secret_key: 'ASecretKey' # for flask to store session information
storage: 'path/to/storage/base'
ui_proxy: 'ip/host:port' # serve UI from remote host, for debug use
Clone this wiki locally