From ca3da2505a41b9475facec5dd79f703ea8303c0d Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Thu, 23 Mar 2023 11:49:54 -0400 Subject: [PATCH] edit env example --- api/.env.example | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/api/.env.example b/api/.env.example index 00b229e4a3..ef0f5022c4 100644 --- a/api/.env.example +++ b/api/.env.example @@ -32,23 +32,31 @@ CHATGPT_TOKEN= # Refresh the page and look at the response body for https://chat.openai.com/backend-api/models. BROWSER_MODEL= -# Enable Message/Convo Search +# ENABLING SEARCH MESSAGES/CONVOS # Requires installation of free self-hosted Meilisearch or Paid Remote Plan (Remote not tested) # The easiest setup for this is through docker-compose, which takes care of it for you. # SEARCH=TRUE SEARCH= + # REQUIRED FOR SEARCH: MeiliSearch Host, mainly for api server to connect to the search server. -MEILI_HOST='http://0.0.0.0:7700' +# must replace '0.0.0.0' with 'meilisearch' if serving meilisearch with docker-compose +# MEILI_HOST='http://0.0.0.0:7700' +MEILI_HOST='http://meilisearch:7700' + # REQUIRED FOR SEARCH: MeiliSearch HTTP Address, mainly for docker-compose to expose the search server. -MEILI_HTTP_ADDR='0.0.0.0:7700' -# REQUIRED FOR SEARCH: needs a secure key, feel free to generate your own. +# must replace '0.0.0.0' with 'meilisearch' if serving meilisearch with docker-compose +# MEILI_HTTP_ADDR='0.0.0.0:7700' +MEILI_HTTP_ADDR='meilisearch:7700' + +# REQUIRED FOR SEARCH: In production env., needs a secure key, feel free to generate your own. # This master key must be at least 16 bytes, composed of valid UTF-8 characters. # Meilisearch will throw an error and refuse to launch if no master key is provided or if it is under 16 bytes, # Meilisearch will suggest a secure autogenerated master key. -MEILI_MASTER_KEY=WjRvKvpelIYHa4dlcDGsdT9c0CKRbY-4VcuCQ1iZPcc +# MEILI_MASTER_KEY=WjRvKvpelIYHa4dlcDGsdT9c0CKRbY-4VcuCQ1iZPcc +MEILI_MASTER_KEY=MASTER_KEY # User System # global enable/disable the sample user system. # this is not a ready to use user system. # dont't use it, unless you can write your own code. -ENABLE_USER_SYSTEM= \ No newline at end of file +ENABLE_USER_SYSTEM=FALSE \ No newline at end of file