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`.
9 lines
318 B
YAML
9 lines
318 B
YAML
# Copy this file to `config/local.yml` and fill it in! It will be gitignored.
|
|
|
|
private:
|
|
# The possible values are documented in `doc/server-secrets.md`. Note that
|
|
# you can also set these values through environment variables, which may be
|
|
# preferable for self hosting.
|
|
gh_token: '...'
|
|
wheelmap_token: '...'
|