-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from UlisesGascon/improve-ci
Improved management for Mongo db uri reference
- Loading branch information
Showing
4 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
// default app configuration | ||
|
||
var port = process.env.PORT || 4000; | ||
var db = process.env.NODE_ENV === 'test' ? "mongodb://localhost:27017/nodegoat" : "mongodb://nodegoat:[email protected]:59217/nodegoat"; | ||
db = db || process.env.MONGOLAB_URI || process.env.MONGODB_URI; | ||
|
||
module.exports = { | ||
port: process.env.PORT || 4000, | ||
db: process.env.MONGOLAB_URI || process.env.MONGODB_URI || "mongodb://nodegoat:[email protected]:59217/nodegoat", | ||
port: port, | ||
db: db, | ||
cookieSecret: "session_cookie_secret_key_here", | ||
cryptoKey: "a_secure_key_for_crypto_here", | ||
cryptoAlgo: "aes256", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters