-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.prod.php
24 lines (20 loc) · 936 Bytes
/
config.prod.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
function load_password_file($filename) {
$fp = fopen($filename, "r");
$content = fscanf($fp, "%s");
fclose($fp);
return($content[0]);
}
$config['displayErrorDetails'] = true;
$config['addContentLengthHeader'] = false;
$config['mongo']['host'] = 'clustera-shard-00-00-s8w9x.azure.mongodb.net:27017,clustera-shard-00-01-s8w9x.azure.mongodb.net:27017,clustera-shard-00-02-s8w9x.azure.mongodb.net:27017';
$config['mongo']['port'] = 27017;
$config['mongo']['dbname'] = 'test';
$config['mongo']['dbuser'] = 'routineuser';
$config['mongo']['dbuserpassword'] = rawurlencode(load_password_file("/vagrant/data/mongodb/routineuser.txt"));
$config['mongo']['connectionString'] = "mongodb://" .
$config['mongo']['dbuser'] . ":" .
$config['mongo']['dbuserpassword'] . "@" .
$config['mongo']['host'] . "/" .
$config['mongo']['dbname'] .
"?ssl=true&replicaSet=ClusterA-shard-0&authSource=admin&retryWrites=true";