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`.
29 lines
823 B
JSON
29 lines
823 B
JSON
{
|
|
"name": "Shields",
|
|
"description": "Concise, consistent, and legible badges in SVG and raster format.",
|
|
"keywords": ["badge", "github", "svg", "status"],
|
|
"website": "https://shields.io/",
|
|
"repository": "https://github.com/badges/shields",
|
|
"logo": "http://shields.io/favicon.png",
|
|
"env": {
|
|
"NPM_CONFIG_PRODUCTION": {
|
|
"description": "Configure whether devDependencies are installed (they are needed for the build).",
|
|
"value": "false"
|
|
},
|
|
"WHEELMAP_TOKEN": {
|
|
"description": "Configure the token to be used for the Wheelmap service.",
|
|
"required": false
|
|
},
|
|
"GH_TOKEN": {
|
|
"description": "Configure the token to be used for the GitHub services.",
|
|
"required": false
|
|
}
|
|
},
|
|
"formation": {
|
|
"web": {
|
|
"quantity": 1,
|
|
"size": "free"
|
|
}
|
|
}
|
|
}
|