
* mkdocs plugins: add plugin for social cards and plugin that allow to exclude a folder * docs: fix hyperlinks * mkdocs: social cards (descriptions) for 'contributions' and 'deployment' guides * mkdocs: social cards (descriptions) for all 'index.md' * mkdocs: social cards (descriptions) for 'features' and 'plugins' * mkdocs: social cards (descriptions) for 'general_info' * mkdocs: social cards (descriptions) for 'configuration' * mkdocs: social cards (descriptions) for 'installation' * mkdocs: minor fixes * update librechat.svg * update how_to_contribute.md add reference to the official GitHub documentation
4 KiB
title | description | weight |
---|---|---|
🍃 Online MongoDB | This guide teaches you how to set up an online MongoDB database for LibreChat using MongoDB Atlas, a cloud-based service. You will learn how to create an account, a project, and a cluster, as well as how to configure your database credentials, network access, and connection string. | -4 |
Set Up an Online MongoDB Database
Create an account
- Open a new tab and go to account.mongodb.com/account/register to create an account.
Create a project
Build a database
Choose your cloud environment
Name your cluster
Database credentials
Select environment
Complete database configuration
Go to your database
Network access
Add IP adress
Allow access
Get your connection string
-
Select
Database
in the side menu -
Select
Connect
: -
Select the first option (
Drivers
) -
Copy the
connection string
: -
The URI format is
mongodb+srv://<username>:<password>@<host>/<database>?<options>
. Make sure to replace<password>
with the database password you created in the "database credentials" section above. Do not forget to remove the<
>
around the password. Also remove&w=majority
at the end of the connection string.retryWrites=true
is the only option you need to keep. You should also addLibreChat
or your ownAPP_TITLE
as the database name in the URI. -
example:
mongodb+srv://fuegovic:1Gr8Banana@render-librechat.fgycwpi.mongo.net/LibreChat?retryWrites=true
⚠️ Note: If you're having trouble, before creating a new issue, please search for similar ones on our #issues thread on our discord or our troubleshooting discussion on our Discussions page. If you don't find a relevant issue, feel free to create a new one and provide as much detail as possible.