Using a single connection URL to configure MongoDB connection.

This commit is contained in:
Zaid Abdulla committed 2014-07-28 18:44:36 +03:00
1 parent f49c7b1ad9
commit 5d0f398bf7
3 files changed
+3 -14

No files matched your search

+1 -11
View File
@@ -15,7 +15,7 @@
# along with GenieACS. If not, see <http://www.gnu.org/licenses/>.
###
exports.DATABASE_NAME = 'genieacs'
exports.MONGODB_CONNECTION_URL = 'mongodb://localhost/genieacs'
exports.REDIS_DB = 0
exports.ACS_PORT = 7547 # CWMP port as assigned by IANA
exports.ACS_HTTPS_PORT = 7548
@@ -42,16 +42,6 @@ exports.SESSION_TIMEOUT = 30
exports.GET_PARAMETER_NAMES_DEPTH_THRESHOLD = 0
exports.TASK_PARAMETERS_BATCH_SIZE = 32
exports.MONGODB_OPTIONS = {
db : {
w : 1
wtimeout : 60000
}
server : {
auto_reconnect : true
}
}
# load configuration
c = require('../config/config')
for k, v of c