Skip to content

Commit 1e59d08

Browse files
committed
Restyle connection string examples
1 parent 2c5a561 commit 1e59d08

File tree

1 file changed

+6
-2
lines changed
  • content/integrate/redis-data-integration/data-pipelines/prepare-dbs

1 file changed

+6
-2
lines changed

content/integrate/redis-data-integration/data-pipelines/prepare-dbs/mongodb.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ db.createUser({
6262
The RDI Collector requires a MongoDB connection string that includes all relevant hosts and authentication details.
6363

6464
Example (Replica Set):
65-
```mongodb://${SOURCE_DB_USERNAME}:${SOURCE_DB_PASSWORD}@host1:27017,host2:27017,host3:27017/?replicaSet=rs0&authSource=admin```
65+
```
66+
mongodb://${SOURCE_DB_USERNAME}:${SOURCE_DB_PASSWORD}@host1:27017,host2:27017,host3:27017/?replicaSet=rs0&authSource=admin
67+
```
6668
- For standalone or Atlas, adjust the connection string accordingly.
6769
- Set replicaSet and authSource as appropriate for your deployment.
6870

@@ -85,7 +87,9 @@ The root CA certificate for MongoDB Atlas must be added as a SOURCE_DB_CACERT se
8587
- Ensure your connection string includes ssl=true or tls=true and references the CA certificate if required by your deployment.
8688

8789
Example connection string for Atlas:
88-
```mongodb+srv://rdi_user:rdi_password@cluster0.mongodb.net/?authSource=admin&tls=true```
90+
```
91+
mongodb+srv://rdi_user:rdi_password@cluster0.mongodb.net/?authSource=admin&tls=true
92+
```
8993

9094
## 6. Network and Security
9195
- Ensure the RDI Collector can connect to all MongoDB nodes on the required ports (default: 27017, or as provided by Atlas).

0 commit comments

Comments
 (0)