diff --git a/.test-tools/compose.yaml b/.test-tools/compose.yaml index edd2dd0..93b75bf 100644 --- a/.test-tools/compose.yaml +++ b/.test-tools/compose.yaml @@ -6,5 +6,5 @@ services: image: mongo restart: always environment: - MONGO_INITDB_ROOT_USERNAME: root - MONGO_INITDB_ROOT_PASSWORD: example \ No newline at end of file + MONGO_INITDB_ROOT_USERNAME: owl + MONGO_INITDB_ROOT_PASSWORD: twittwoo \ No newline at end of file diff --git a/README.md b/README.md index 51c8df0..77aa119 100644 --- a/README.md +++ b/README.md @@ -67,8 +67,8 @@ The app is designed to be run within Kubernetes or within a Docker container, as |:-:|:-----:|:------:|:-----:| |OWL_SRV_PORT|8460|NO|Web Server Port| |OWL_SRV_LISTEN|0.0.0.0|NO|Web Server Listen Address| -|OWL_DB_USER||YES|Database Username| -|OWL_DB_PASS||YES|Database Password| +|OWL_DB_USER|owl|NO|Database Username| +|OWL_DB_PASS|twittwoo|NO|Database Password - Do not leave as default in production| |OWL_DB_NAME|owlboard|NO|Database Name| |OWL_DB_PORT|27017|NO|Database Server Port| |OWL_DB_HOST|database|NO|Database Server Host| diff --git a/src/services/db.services.js b/src/services/db.services.js index fe5ce14..51cbc84 100644 --- a/src/services/db.services.js +++ b/src/services/db.services.js @@ -1,10 +1,10 @@ // General DB Access aswell as dbInit tests etc. -const database = require( '../utils/dbinit.utils' ) +const { MongoClient } = require('mongodb'); const dbUser = process.env.OWL_DB_USER || "owl" -const dbPass = process.env.OWL_DB_PASS || "" +const dbPass = process.env.OWL_DB_PASS || "twittwoo" const dbName = process.env.OWL_DB_NAME || "owlboard" const dbPort = process.env.OWL_DB_PORT || 27017 const dbHost = process.env.OWL_DB_HOST || "database" @@ -23,5 +23,5 @@ async function checkCrs(crs) { } module.export = { - readQuery, + } \ No newline at end of file