From 690cb9caa10c0a21f1c0cadf1735f1afe35981cd Mon Sep 17 00:00:00 2001 From: Tyler Mendenhall Date: Fri, 12 Jan 2024 18:14:42 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=94=20docs:=20Update=20Render=20hostin?= =?UTF-8?q?g=20Guide=20(#1528)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add the IntelliJ Idea config file to .gitignore * Update the docs for using a user created key and restricting mongodb IP access to public IP addresses --- .gitignore | 1 + docs/deployment/meilisearch_in_render.md | 16 ++++++++-------- docs/deployment/render.md | 3 ++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index a09baeed0e..765de5cb79 100644 --- a/.gitignore +++ b/.gitignore @@ -69,6 +69,7 @@ src/style - official.css .DS_Store *.code-workspace .idea +*.iml *.pem config.local.ts **/storageState.json diff --git a/docs/deployment/meilisearch_in_render.md b/docs/deployment/meilisearch_in_render.md index 3e24c71b54..d9769728db 100644 --- a/docs/deployment/meilisearch_in_render.md +++ b/docs/deployment/meilisearch_in_render.md @@ -40,7 +40,7 @@ weight: -3 | --- | --- | | MEILI_HOST | http://meilisearch:7700 | | MEILI_HTTP_ADDR | meilisearch:7700 | -| MEILI_MASTER_KEY | DrhYf7zENyR6AlUCKmnz0eYASOQdl6zxH7s7MKFSfFCt | +| MEILI_MASTER_KEY | Create a 44 character alphanunmeric key | | MEILI_NO_ANALYTICS | true | **Deployment** @@ -63,13 +63,13 @@ Once you get the message: `your service is live 🎉`, copy the URL address of y Now, insert the below environment variable values into your LibreChat project (Replace MEILI_HOST by adding the URL address of your Render's Meilisearch project that you copied): -| Key | Value | -| --- | --- | -| MEILI_HOST | Your Render project's Meilisearch URL| -| MEILI_HTTP_ADDR | meilisearch:7700 | -| MEILI_MASTER_KEY | DrhYf7zENyR6AlUCKmnz0eYASOQdl6zxH7s7MKFSfFCt | -| MEILI_NO_ANALYTICS | true | -| SEARCH | true | +| Key | Value | +| --- |---------------------------------------| +| MEILI_HOST | Your Render project's Meilisearch URL | +| MEILI_HTTP_ADDR | meilisearch:7700 | +| MEILI_MASTER_KEY | Use the key created for Meilisearch | +| MEILI_NO_ANALYTICS | true | +| SEARCH | true | ![image](https://github.com/danny-avila/LibreChat/assets/32828263/f4ff1310-dc6b-4a81-944e-0eece8606b86) diff --git a/docs/deployment/render.md b/docs/deployment/render.md index 6652f41ee5..2ec539f6b5 100644 --- a/docs/deployment/render.md +++ b/docs/deployment/render.md @@ -82,8 +82,9 @@ Also: ## Create and Configure your Database The last thing you need is to create a MongoDB Atlas Database and get your connection string. +You can also restrict access to your Mongodb to only the [static outgoing IP addresses](https://docs.render.com/static-outbound-ip-addresses) for your Render hosted web service. -Follow the instructions in this document: [Online MongoDB Database](../install/configuration/mongodb.md) +Follow the instructions in this document but add each of the outgoing IP addresses to the list instead of all hosts: [Online MongoDB Database](../install/configuration/mongodb.md) ## Complete the Environment Variables configuration