Skip to content

Commit

Permalink
Added pod to .env.github.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
jclo committed Jan 11, 2024
1 parent 7acda85 commit 1255c12
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .env.github.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
// -- Main section -

const env = {
// The credentials of the pod. There used by the other servers to identify the
// pod entering in contact with them.
pod: {
authserver: 'the name of the server who can confirm the credentials of the pod',
auth: {
user: 'the authentication username',
password: 'the authentication password',
},
},
// Define here the credentials to access your database. This hidden file
// is declared not to be exported in '.gitignore'.
db: {
Expand Down Expand Up @@ -47,7 +56,7 @@ const env = {
useUnifiedTopology: true,
useNewUrlParser: true,
connectTimeoutMS: 30000,
keepAlive: 1,
// keepAlive: 1,
},
},
testdb: {
Expand All @@ -61,11 +70,12 @@ const env = {
useUnifiedTopology: true,
useNewUrlParser: true,
connectTimeoutMS: 30000,
keepAlive: 1,
// keepAlive: 1,
},
},
},
};


// -- Export
module.exports = env;
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Reshuffled test/main.js file and added mongodb test,
* Improved token management,
* Added the support of web sockets,
* Added pod to .env.github.js,
* ...,


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"testing": " --- TESTING --- ",
"test": "cross-env NODE_ENV=test c8 --reporter=lcov mocha ./test/main.js --exit",
"display:coverage": "open -a safari ./coverage/lcov-report/index.html",
"check:coverage": "c8 check-coverage --statements 70 --branches è0 --functions 40 --lines 70",
"check:coverage": "c8 check-coverage --statements 70 --branches 70 --functions 50 --lines 70",
"report": "c8 report",

"deployment": " --- DEPLOYMENT --- ",
Expand Down

0 comments on commit 1255c12

Please sign in to comment.