get mongodb configuration from env

This commit is contained in:
lealife
2015-09-09 10:10:24 +08:00
parent afbda7bfb2
commit 4f2d7b8cd0
2 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,7 @@ db.password= # if not exists, please leave it blank
# or you can set the mongdb url for more complex needs the format is:
# mongodb://myuser:mypass@localhost:40001,otherhost:40001/mydb
# db.url=mongodb://root:root123@localhost:27017/leanote
db.urlEnv=${MONGODB_URL} # set url from env
# You Must Change It !! About Security!!
app.secret=V85ZzBeTnzpsHyjQX4zukbQ8qqtju9y2aDM55VWxAH9Qop19poekx3xkcDVvrD0y