diff options
| author | Victor Näslund <victor@sunet.se> | 2022-11-13 22:28:12 +0100 |
|---|---|---|
| committer | Victor Näslund <victor@sunet.se> | 2022-11-13 22:28:12 +0100 |
| commit | dd901cd2cfc2b72b18ea0fcac0cc478b33198d2d (patch) | |
| tree | fefa4853f4a9b49655208af46e48e31edff1e538 /data/init-mongodb.js | |
| parent | 563607809d993c9e496423829b1f93def22a4aac (diff) | |
better mongodb handling
Diffstat (limited to 'data/init-mongodb.js')
| -rw-r--r-- | data/init-mongodb.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/data/init-mongodb.js b/data/init-mongodb.js index 6057d84..054dfd1 100644 --- a/data/init-mongodb.js +++ b/data/init-mongodb.js @@ -1,8 +1,3 @@ - -// To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy). -// You can opt-out by running the disableTelemetry() command. -disableTelemetry() - // Create the DB by inserting some data db.REPLACE_COLLECTION.insertOne({init_key: "init_data"}) @@ -23,6 +18,9 @@ db.createUser( // Delete the init data db.REPLACE_COLLECTION.deleteOne({init_key: "init_data"}) +// Add healthcheck +db.healthcheck.insertOne({healthcheck: "ok"}) + // Disable the ad about monitoring db.disableFreeMonitoring() |
