mirror of
https://github.com/LibreChat-AI/librechat.ai.git
synced 2026-03-27 10:48:32 +07:00
Merge pull request #58 from normunds-wipo/feature/1664
feat: 1664, mongo_uri
This commit is contained in:
@@ -45,17 +45,23 @@ For more info see:
|
||||
|
||||
### MongoDB Database
|
||||
|
||||
- Change this to your MongoDB URI if different. You should also add `LibreChat` or your own `APP_TITLE` as the database name in the URI.
|
||||
|
||||
<OptionTable
|
||||
options={[
|
||||
['MONGO_URI', 'string', 'Specifies the MongoDB URI.','MONGO_URI=mongodb://127.0.0.1:27017/LibreChat'],
|
||||
]}
|
||||
/>
|
||||
Change this to your MongoDB URI if different. You should add `LibreChat` or your own `APP_TITLE` as the database name in the URI.
|
||||
|
||||
For example:
|
||||
If you are using an online database, the URI format is `mongodb+srv://<username>:<password>@<host>/<database>?<options>`. Your `MONGO_URI` should look like this:
|
||||
* `mongodb+srv://username:password@host.mongodb.net/LibreChat?retryWrites=true` (`retryWrites` is the only option you need when using the online database.)
|
||||
|
||||
* If you are using an online database, the URI format is `mongodb+srv://<username>:<password>@<host>/<database>?<options>`. Your `MONGO_URI` should look like this: `mongodb+srv://username:password@host.mongodb.net/LibreChat?retryWrites=true` (`retryWrites=true` is the only option you need when using the online database)
|
||||
Alternatively you can use `documentDb` that emulates `mongoDb` but it:
|
||||
|
||||
* does not support `retryWrites` - use `retryWrites=false`
|
||||
* requires TLS connection, hence use parameters `tls=true` to enable TLS and `tlsCAFile=/path-to-ca/bundle.pem` to point to the AWS provided CA bundle file
|
||||
|
||||
The URI for `documentDb` will look like:
|
||||
* `mongodb+srv://username:password@domain/dbname?retryWrites=false&tls=true&tlsCAFile=/path-to-ca/bundle.pem`
|
||||
|
||||
See also:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user