This implements the configuration mechanism I described in #2621. The heavy lifting is delegated to [node-config](https://github.com/lorenwest/node-config) with a minor assist from [dotenv](https://github.com/motdotla/dotenv). `private/secret.json` has been replaced with environment variables and/or `config/local.yml`. See `doc/server-secrets.md`.
35 lines
470 B
YAML
35 lines
470 B
YAML
public:
|
|
metrics:
|
|
prometheus:
|
|
enabled: false
|
|
allowedIps: []
|
|
|
|
ssl:
|
|
isSecure: false
|
|
|
|
cors:
|
|
allowedOrigin: []
|
|
|
|
persistence:
|
|
dir: './private'
|
|
|
|
services:
|
|
github:
|
|
baseUri: 'https://api.github.com/'
|
|
debug:
|
|
enabled: false
|
|
intervalSeconds: 200
|
|
trace: false
|
|
|
|
profiling:
|
|
makeBadge: false
|
|
|
|
cacheHeaders:
|
|
defaultCacheLengthSeconds: 120
|
|
|
|
rateLimit: true
|
|
|
|
handleInternalErrors: true
|
|
|
|
private: {}
|