task: clean repo root

This change seeks to continue tidying up the repo.

* The database_configuration.json file is not used and has not been used since
  the project was published on github.  We remove the ability to look at files
  inside the source tree for database credentials.

*  Move example-profiles.md to the relevant documentation for plugins area and
   update the link to match.
This commit is contained in:
Ben West
2021-02-18 09:46:29 -08:00
parent be183f5d1b
commit a42408b0a7
4 changed files with 2 additions and 9 deletions
+1 -1
View File
@@ -670,7 +670,7 @@ For remote overrides, the following extended settings must be configured:
* `target_high` - Upper target for correction boluses.
* `target_low` - Lower target for correction boluses.
Some example profiles are [here](example-profiles.md).
Some example profiles are [here](docs/plugins/example-profiles.md).
## Setting environment variables
Easy to emulate on the commandline:
-4
View File
@@ -1,4 +0,0 @@
{
"url": null,
"collection": null
}
+1 -4
View File
@@ -130,10 +130,7 @@ function setStorage () {
env.food_collection = readENV('MONGO_FOOD_COLLECTION', 'food');
env.activity_collection = readENV('MONGO_ACTIVITY_COLLECTION', 'activity');
// TODO: clean up a bit
// Some people prefer to use a json configuration file instead.
// This allows a provided json config to override environment variables
var DB = require('../../database_configuration.json')
var DB = { url: null, collection: null }
, DB_URL = DB.url ? DB.url : env.storageURI
, DB_COLLECTION = DB.collection ? DB.collection : env.entries_collection;
env.storageURI = DB_URL;