Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
saitensou committed May 15, 2022
1 parent 08bd568 commit 1ecf440
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/db/mongodb/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (a *adapter) Open(jsonconfig json.RawMessage) error {
a.maxMessageResults = defaultMaxMessageResults
}


// Check URI at last if need to override other options
if config.Uri != "" {
opts.ApplyURI(config.Uri)
serverAPIOptions := mdbopts.ServerAPI(mdbopts.ServerAPIVersion1)
Expand Down
3 changes: 3 additions & 0 deletions server/tinode.conf
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@
// Name of replica set of mongodb instance. Remove this line to use a standalone instance.
// If replica_set is disabled, transactions will be disabled as well.
"replica_set": "rs0",
// if uri is given, it will be used and override other overlapped options set.
// Beneficial for mongodb Atlas, left it empty/ remove it if not needed.
"uri": "",

// Authentication options. Uncomment if auth is configured on your MongoDB.

Expand Down

0 comments on commit 1ecf440

Please sign in to comment.