mirror of
https://github.com/Febbweiss/CloudBudget.git
synced 2026-03-05 06:45:39 +00:00
Feature: First version of the REST API done
This commit is contained in:
11
config/db.js
Normal file
11
config/db.js
Normal file
@@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
development: {
|
||||
url: 'mongodb://' + process.env.IP + ':27017/cloudbudget_dev'
|
||||
},
|
||||
test: {
|
||||
url: 'mongodb://localhost:27017/cloudbudget_test'
|
||||
},
|
||||
production: {
|
||||
url: 'mongodb://' + process.env.IP + ':27017/cloudbudget'
|
||||
},
|
||||
}
|
||||
7
config/security.js
Normal file
7
config/security.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
jwt : {
|
||||
secretOrKey : 's3cr3t',
|
||||
issuer : undefined, // accounts.examplesoft.com
|
||||
audience : undefined // yoursite.net
|
||||
}
|
||||
}
|
||||
17
config/server.js
Normal file
17
config/server.js
Normal file
@@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
development: {
|
||||
port : process.env.PORT || 3000,
|
||||
server : process.env.IP || '0.0.0.0',
|
||||
errorHandlerOptions: {"dumpExceptions": true, "showStack": true}
|
||||
},
|
||||
test: {
|
||||
port : 3000,
|
||||
server : 'localhost',
|
||||
errorHandlerOptions: {"dumpExceptions": false, "showStack": false}
|
||||
},
|
||||
production: {
|
||||
port : process.env.PORT || 3000,
|
||||
server : process.env.IP || '0.0.0.0',
|
||||
errorHandlerOptions: {"dumpExceptions": false, "showStack": false}
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user