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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#=====================================================================#
|
2 |
+
# LibreChat Configuration #
|
3 |
+
#=====================================================================#
|
4 |
+
# Please refer to the reference documentation for assistance #
|
5 |
+
# with configuring your LibreChat environment. #
|
6 |
+
# #
|
7 |
+
# https://www.librechat.ai/docs/configuration/dotenv #
|
8 |
+
#=====================================================================#
|
9 |
+
|
10 |
+
#==================================================#
|
11 |
+
# Server Configuration #
|
12 |
+
#==================================================#
|
13 |
+
|
14 |
+
HOST=localhost
|
15 |
+
PORT=3080
|
16 |
+
|
17 |
+
MONGO_URI=mongodb://127.0.0.1:27017/LibreChat
|
18 |
+
|
19 |
+
DOMAIN_CLIENT=http://localhost:3080
|
20 |
+
DOMAIN_SERVER=http://localhost:3080
|
21 |
+
|
22 |
+
NO_INDEX=true
|
23 |
+
|
24 |
+
#===============#
|
25 |
+
# JSON Logging #
|
26 |
+
#===============#
|
27 |
+
|
28 |
+
# Use when process console logs in cloud deployment like GCP/AWS
|
29 |
+
CONSOLE_JSON=false
|
30 |
+
|
31 |
+
#===============#
|
32 |
+
# Debug Logging #
|
33 |
+
#===============#
|
34 |
+
|
35 |
+
DEBUG_LOGGING=true
|
36 |
+
DEBUG_CONSOLE=false
|
37 |
+
|
38 |
+
#=============#
|
39 |
+
# Permissions #
|
40 |
+
#=============#
|
41 |
+
|
42 |
+
# UID=1000
|
43 |
+
# GID=1000
|
44 |
+
|
45 |
+
#===============#
|
46 |
+
# Configuration #
|
47 |
+
#===============#
|
48 |
+
# Use an absolute path, a relative path, or a URL
|
49 |
+
|
50 |
+
# CONFIG_PATH="/alternative/path/to/librechat.yaml"
|
51 |
+
|
52 |
+
#===================================================#
|
53 |
+
# Endpoints #
|
54 |
+
#===================================================#
|
55 |
+
|
56 |
+
# ENDPOINTS=openAI,assistants,azureOpenAI,bingAI,google,gptPlugins,anthropic
|
57 |
+
|
58 |
+
PROXY=
|
59 |
+
|
60 |
+
#===================================#
|
61 |
+
# Known Endpoints - librechat.yaml #
|
62 |
+
#===================================#
|
63 |
+
# https://www.librechat.ai/docs/configuration/librechat_yaml/ai_endpoints
|
64 |
+
|
65 |
+
# ANYSCALE_API_KEY=
|
66 |
+
# APIPIE_API_KEY=
|
67 |
+
# COHERE_API_KEY=
|
68 |
+
# DEEPSEEK_API_KEY=
|
69 |
+
# DATABRICKS_API_KEY=
|
70 |
+
# FIREWORKS_API_KEY=
|
71 |
+
# GROQ_API_KEY=
|
72 |
+
# HUGGINGFACE_TOKEN=
|
73 |
+
# MISTRAL_API_KEY=
|
74 |
+
# OPENROUTER_KEY=
|
75 |
+
# PERPLEXITY_API_KEY=
|
76 |
+
# SHUTTLEAI_API_KEY=
|
77 |
+
# TOGETHERAI_API_KEY=
|
78 |
+
# UNIFY_API_KEY=
|
79 |
+
# XAI_API_KEY=
|
80 |
+
|
81 |
+
#============#
|
82 |
+
# Anthropic #
|
83 |
+
#============#
|
84 |
+
|
85 |
+
ANTHROPIC_API_KEY=user_provided
|
86 |
+
# ANTHROPIC_MODELS=claude-3-5-haiku-20241022,claude-3-5-sonnet-20241022,claude-3-5-sonnet-latest,claude-3-5-sonnet-20240620,claude-3-opus-20240229,claude-3-sonnet-20240229,claude-3-haiku-20240307,claude-2.1,claude-2,claude-1.2,claude-1,claude-1-100k,claude-instant-1,claude-instant-1-100k
|
87 |
+
# ANTHROPIC_REVERSE_PROXY=
|
88 |
+
|
89 |
+
#============#
|
90 |
+
# Azure #
|
91 |
+
#============#
|
92 |
+
|
93 |
+
# Note: these variables are DEPRECATED
|
94 |
+
# Use the `librechat.yaml` configuration for `azureOpenAI` instead
|
95 |
+
# You may also continue to use them if you opt out of using the `librechat.yaml` configuration
|
96 |
+
|
97 |
+
# AZURE_OPENAI_DEFAULT_MODEL=gpt-3.5-turbo # Deprecated
|
98 |
+
# AZURE_OPENAI_MODELS=gpt-3.5-turbo,gpt-4 # Deprecated
|
99 |
+
# AZURE_USE_MODEL_AS_DEPLOYMENT_NAME=TRUE # Deprecated
|
100 |
+
# AZURE_API_KEY= # Deprecated
|
101 |
+
# AZURE_OPENAI_API_INSTANCE_NAME= # Deprecated
|
102 |
+
# AZURE_OPENAI_API_DEPLOYMENT_NAME= # Deprecated
|
103 |
+
# AZURE_OPENAI_API_VERSION= # Deprecated
|
104 |
+
# AZURE_OPENAI_API_COMPLETIONS_DEPLOYMENT_NAME= # Deprecated
|
105 |
+
# AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME= # Deprecated
|
106 |
+
# PLUGINS_USE_AZURE="true" # Deprecated
|
107 |
+
|
108 |
+
#============#
|
109 |
+
# BingAI #
|
110 |
+
#============#
|
111 |
+
|
112 |
+
BINGAI_TOKEN=user_provided
|
113 |
+
# BINGAI_HOST=https://cn.bing.com
|
114 |
+
|
115 |
+
#=================#
|
116 |
+
# AWS Bedrock #
|
117 |
+
#=================#
|
118 |
+
|
119 |
+
# BEDROCK_AWS_DEFAULT_REGION=us-east-1 # A default region must be provided
|
120 |
+
# BEDROCK_AWS_ACCESS_KEY_ID=someAccessKey
|
121 |
+
# BEDROCK_AWS_SECRET_ACCESS_KEY=someSecretAccessKey
|
122 |
+
# BEDROCK_AWS_SESSION_TOKEN=someSessionToken
|
123 |
+
|
124 |
+
# Note: This example list is not meant to be exhaustive. If omitted, all known, supported model IDs will be included for you.
|
125 |
+
# BEDROCK_AWS_MODELS=anthropic.claude-3-5-sonnet-20240620-v1:0,meta.llama3-1-8b-instruct-v1:0
|
126 |
+
|
127 |
+
# See all Bedrock model IDs here: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
128 |
+
|
129 |
+
# Notes on specific models:
|
130 |
+
# The following models are not support due to not supporting streaming:
|
131 |
+
# ai21.j2-mid-v1
|
132 |
+
|
133 |
+
# The following models are not support due to not supporting conversation history:
|
134 |
+
# ai21.j2-ultra-v1, cohere.command-text-v14, cohere.command-light-text-v14
|
135 |
+
|
136 |
+
#============#
|
137 |
+
# Google #
|
138 |
+
#============#
|
139 |
+
|
140 |
+
GOOGLE_KEY=user_provided
|
141 |
+
|
142 |
+
# GOOGLE_REVERSE_PROXY=
|
143 |
+
# Some reverse proxies do not support the X-goog-api-key header, uncomment to pass the API key in Authorization header instead.
|
144 |
+
# GOOGLE_AUTH_HEADER=true
|
145 |
+
|
146 |
+
# Gemini API (AI Studio)
|
147 |
+
# GOOGLE_MODELS=gemini-2.0-flash-exp,gemini-2.0-flash-thinking-exp-1219,gemini-exp-1121,gemini-exp-1114,gemini-1.5-flash-latest,gemini-1.0-pro,gemini-1.0-pro-001,gemini-1.0-pro-latest,gemini-1.0-pro-vision-latest,gemini-1.5-pro-latest,gemini-pro,gemini-pro-vision
|
148 |
+
|
149 |
+
# Vertex AI
|
150 |
+
# GOOGLE_MODELS=gemini-1.5-flash-preview-0514,gemini-1.5-pro-preview-0514,gemini-1.0-pro-vision-001,gemini-1.0-pro-002,gemini-1.0-pro-001,gemini-pro-vision,gemini-1.0-pro
|
151 |
+
|
152 |
+
# GOOGLE_TITLE_MODEL=gemini-pro
|
153 |
+
|
154 |
+
# GOOGLE_LOC=us-central1
|
155 |
+
|
156 |
+
# Google Safety Settings
|
157 |
+
# NOTE: These settings apply to both Vertex AI and Gemini API (AI Studio)
|
158 |
+
#
|
159 |
+
# For Vertex AI:
|
160 |
+
# To use the BLOCK_NONE setting, you need either:
|
161 |
+
# (a) Access through an allowlist via your Google account team, or
|
162 |
+
# (b) Switch to monthly invoiced billing: https://cloud.google.com/billing/docs/how-to/invoiced-billing
|
163 |
+
#
|
164 |
+
# For Gemini API (AI Studio):
|
165 |
+
# BLOCK_NONE is available by default, no special account requirements.
|
166 |
+
#
|
167 |
+
# Available options: BLOCK_NONE, BLOCK_ONLY_HIGH, BLOCK_MEDIUM_AND_ABOVE, BLOCK_LOW_AND_ABOVE
|
168 |
+
#
|
169 |
+
# GOOGLE_SAFETY_SEXUALLY_EXPLICIT=BLOCK_ONLY_HIGH
|
170 |
+
# GOOGLE_SAFETY_HATE_SPEECH=BLOCK_ONLY_HIGH
|
171 |
+
# GOOGLE_SAFETY_HARASSMENT=BLOCK_ONLY_HIGH
|
172 |
+
# GOOGLE_SAFETY_DANGEROUS_CONTENT=BLOCK_ONLY_HIGH
|
173 |
+
# GOOGLE_SAFETY_CIVIC_INTEGRITY=BLOCK_ONLY_HIGH
|
174 |
+
|
175 |
+
#============#
|
176 |
+
# OpenAI #
|
177 |
+
#============#
|
178 |
+
|
179 |
+
OPENAI_API_KEY=user_provided
|
180 |
+
# OPENAI_MODELS=gpt-4o,chatgpt-4o-latest,gpt-4o-mini,gpt-3.5-turbo-0125,gpt-3.5-turbo-0301,gpt-3.5-turbo,gpt-4,gpt-4-0613,gpt-4-vision-preview,gpt-3.5-turbo-0613,gpt-3.5-turbo-16k-0613,gpt-4-0125-preview,gpt-4-turbo-preview,gpt-4-1106-preview,gpt-3.5-turbo-1106,gpt-3.5-turbo-instruct,gpt-3.5-turbo-instruct-0914,gpt-3.5-turbo-16k
|
181 |
+
|
182 |
+
DEBUG_OPENAI=false
|
183 |
+
|
184 |
+
# TITLE_CONVO=false
|
185 |
+
# OPENAI_TITLE_MODEL=gpt-4o-mini
|
186 |
+
|
187 |
+
# OPENAI_SUMMARIZE=true
|
188 |
+
# OPENAI_SUMMARY_MODEL=gpt-4o-mini
|
189 |
+
|
190 |
+
# OPENAI_FORCE_PROMPT=true
|
191 |
+
|
192 |
+
# OPENAI_REVERSE_PROXY=
|
193 |
+
|
194 |
+
# OPENAI_ORGANIZATION=
|
195 |
+
|
196 |
+
#====================#
|
197 |
+
# Assistants API #
|
198 |
+
#====================#
|
199 |
+
|
200 |
+
ASSISTANTS_API_KEY=user_provided
|
201 |
+
# ASSISTANTS_BASE_URL=
|
202 |
+
# ASSISTANTS_MODELS=gpt-4o,gpt-4o-mini,gpt-3.5-turbo-0125,gpt-3.5-turbo-16k-0613,gpt-3.5-turbo-16k,gpt-3.5-turbo,gpt-4,gpt-4-0314,gpt-4-32k-0314,gpt-4-0613,gpt-3.5-turbo-0613,gpt-3.5-turbo-1106,gpt-4-0125-preview,gpt-4-turbo-preview,gpt-4-1106-preview
|
203 |
+
|
204 |
+
#==========================#
|
205 |
+
# Azure Assistants API #
|
206 |
+
#==========================#
|
207 |
+
|
208 |
+
# Note: You should map your credentials with custom variables according to your Azure OpenAI Configuration
|
209 |
+
# The models for Azure Assistants are also determined by your Azure OpenAI configuration.
|
210 |
+
|
211 |
+
# More info, including how to enable use of Assistants with Azure here:
|
212 |
+
# https://www.librechat.ai/docs/configuration/librechat_yaml/ai_endpoints/azure#using-assistants-with-azure
|
213 |
+
|
214 |
+
#============#
|
215 |
+
# OpenRouter #
|
216 |
+
#============#
|
217 |
+
# !!!Warning: Use the variable above instead of this one. Using this one will override the OpenAI endpoint
|
218 |
+
# OPENROUTER_API_KEY=
|
219 |
+
|
220 |
+
#============#
|
221 |
+
# Plugins #
|
222 |
+
#============#
|
223 |
+
|
224 |
+
# PLUGIN_MODELS=gpt-4o,gpt-4o-mini,gpt-4,gpt-4-turbo-preview,gpt-4-0125-preview,gpt-4-1106-preview,gpt-4-0613,gpt-3.5-turbo,gpt-3.5-turbo-0125,gpt-3.5-turbo-1106,gpt-3.5-turbo-0613
|
225 |
+
|
226 |
+
DEBUG_PLUGINS=true
|
227 |
+
|
228 |
+
CREDS_KEY=f34be427ebb29de8d88c107a71546019685ed8b241d8f2ed00c3df97ad2566f0
|
229 |
+
CREDS_IV=e2341419ec3dd3d19b13a1a87fafcbfb
|
230 |
+
|
231 |
+
# Azure AI Search
|
232 |
+
#-----------------
|
233 |
+
AZURE_AI_SEARCH_SERVICE_ENDPOINT=
|
234 |
+
AZURE_AI_SEARCH_INDEX_NAME=
|
235 |
+
AZURE_AI_SEARCH_API_KEY=
|
236 |
+
|
237 |
+
AZURE_AI_SEARCH_API_VERSION=
|
238 |
+
AZURE_AI_SEARCH_SEARCH_OPTION_QUERY_TYPE=
|
239 |
+
AZURE_AI_SEARCH_SEARCH_OPTION_TOP=
|
240 |
+
AZURE_AI_SEARCH_SEARCH_OPTION_SELECT=
|
241 |
+
|
242 |
+
# DALL·E
|
243 |
+
#----------------
|
244 |
+
# DALLE_API_KEY=
|
245 |
+
# DALLE3_API_KEY=
|
246 |
+
# DALLE2_API_KEY=
|
247 |
+
# DALLE3_SYSTEM_PROMPT=
|
248 |
+
# DALLE2_SYSTEM_PROMPT=
|
249 |
+
# DALLE_REVERSE_PROXY=
|
250 |
+
# DALLE3_BASEURL=
|
251 |
+
# DALLE2_BASEURL=
|
252 |
+
|
253 |
+
# DALL·E (via Azure OpenAI)
|
254 |
+
# Note: requires some of the variables above to be set
|
255 |
+
#----------------
|
256 |
+
# DALLE3_AZURE_API_VERSION=
|
257 |
+
# DALLE2_AZURE_API_VERSION=
|
258 |
+
|
259 |
+
# Google
|
260 |
+
#-----------------
|
261 |
+
GOOGLE_SEARCH_API_KEY=
|
262 |
+
GOOGLE_CSE_ID=
|
263 |
+
|
264 |
+
# SerpAPI
|
265 |
+
#-----------------
|
266 |
+
SERPAPI_API_KEY=
|
267 |
+
|
268 |
+
# Stable Diffusion
|
269 |
+
#-----------------
|
270 |
+
SD_WEBUI_URL=http://host.docker.internal:7860
|
271 |
+
|
272 |
+
# Tavily
|
273 |
+
#-----------------
|
274 |
+
TAVILY_API_KEY=
|
275 |
+
|
276 |
+
# Traversaal
|
277 |
+
#-----------------
|
278 |
+
TRAVERSAAL_API_KEY=
|
279 |
+
|
280 |
+
# WolframAlpha
|
281 |
+
#-----------------
|
282 |
+
WOLFRAM_APP_ID=
|
283 |
+
|
284 |
+
# Zapier
|
285 |
+
#-----------------
|
286 |
+
ZAPIER_NLA_API_KEY=
|
287 |
+
|
288 |
+
#==================================================#
|
289 |
+
# Search #
|
290 |
+
#==================================================#
|
291 |
+
|
292 |
+
SEARCH=true
|
293 |
+
MEILI_NO_ANALYTICS=true
|
294 |
+
MEILI_HOST=http://0.0.0.0:7700
|
295 |
+
MEILI_MASTER_KEY=DrhYf7zENyR6AlUCKmnz0eYASOQdl6zxH7s7MKFSfFCt
|
296 |
+
|
297 |
+
#==================================================#
|
298 |
+
# Speech to Text & Text to Speech #
|
299 |
+
#==================================================#
|
300 |
+
|
301 |
+
STT_API_KEY=
|
302 |
+
TTS_API_KEY=
|
303 |
+
|
304 |
+
#==================================================#
|
305 |
+
# RAG #
|
306 |
+
#==================================================#
|
307 |
+
# More info: https://www.librechat.ai/docs/configuration/rag_api
|
308 |
+
|
309 |
+
# RAG_OPENAI_BASEURL=
|
310 |
+
# RAG_OPENAI_API_KEY=
|
311 |
+
# RAG_USE_FULL_CONTEXT=
|
312 |
+
# EMBEDDINGS_PROVIDER=openai
|
313 |
+
# EMBEDDINGS_MODEL=text-embedding-3-small
|
314 |
+
|
315 |
+
#===================================================#
|
316 |
+
# User System #
|
317 |
+
#===================================================#
|
318 |
+
|
319 |
+
#========================#
|
320 |
+
# Moderation #
|
321 |
+
#========================#
|
322 |
+
|
323 |
+
OPENAI_MODERATION=false
|
324 |
+
OPENAI_MODERATION_API_KEY=
|
325 |
+
# OPENAI_MODERATION_REVERSE_PROXY=
|
326 |
+
|
327 |
+
BAN_VIOLATIONS=true
|
328 |
+
BAN_DURATION=1000 * 60 * 60 * 2
|
329 |
+
BAN_INTERVAL=20
|
330 |
+
|
331 |
+
LOGIN_VIOLATION_SCORE=1
|
332 |
+
REGISTRATION_VIOLATION_SCORE=1
|
333 |
+
CONCURRENT_VIOLATION_SCORE=1
|
334 |
+
MESSAGE_VIOLATION_SCORE=1
|
335 |
+
NON_BROWSER_VIOLATION_SCORE=20
|
336 |
+
|
337 |
+
LOGIN_MAX=7
|
338 |
+
LOGIN_WINDOW=5
|
339 |
+
REGISTER_MAX=5
|
340 |
+
REGISTER_WINDOW=60
|
341 |
+
|
342 |
+
LIMIT_CONCURRENT_MESSAGES=true
|
343 |
+
CONCURRENT_MESSAGE_MAX=2
|
344 |
+
|
345 |
+
LIMIT_MESSAGE_IP=true
|
346 |
+
MESSAGE_IP_MAX=40
|
347 |
+
MESSAGE_IP_WINDOW=1
|
348 |
+
|
349 |
+
LIMIT_MESSAGE_USER=false
|
350 |
+
MESSAGE_USER_MAX=40
|
351 |
+
MESSAGE_USER_WINDOW=1
|
352 |
+
|
353 |
+
ILLEGAL_MODEL_REQ_SCORE=5
|
354 |
+
|
355 |
+
#========================#
|
356 |
+
# Balance #
|
357 |
+
#========================#
|
358 |
+
|
359 |
+
CHECK_BALANCE=false
|
360 |
+
# START_BALANCE=20000 # note: the number of tokens that will be credited after registration.
|
361 |
+
|
362 |
+
#========================#
|
363 |
+
# Registration and Login #
|
364 |
+
#========================#
|
365 |
+
|
366 |
+
ALLOW_EMAIL_LOGIN=true
|
367 |
+
ALLOW_REGISTRATION=true
|
368 |
+
ALLOW_SOCIAL_LOGIN=false
|
369 |
+
ALLOW_SOCIAL_REGISTRATION=false
|
370 |
+
ALLOW_PASSWORD_RESET=false
|
371 |
+
# ALLOW_ACCOUNT_DELETION=true # note: enabled by default if omitted/commented out
|
372 |
+
ALLOW_UNVERIFIED_EMAIL_LOGIN=true
|
373 |
+
|
374 |
+
SESSION_EXPIRY=1000 * 60 * 15
|
375 |
+
REFRESH_TOKEN_EXPIRY=(1000 * 60 * 60 * 24) * 7
|
376 |
+
|
377 |
+
JWT_SECRET=16f8c0ef4a5d391b26034086c628469d3f9f497f08163ab9b40137092f2909ef
|
378 |
+
JWT_REFRESH_SECRET=eaa5191f2914e30b9387fd84e254e4ba6fc51b4654968a9b0803b456a54b8418
|
379 |
+
|
380 |
+
# Discord
|
381 |
+
DISCORD_CLIENT_ID=
|
382 |
+
DISCORD_CLIENT_SECRET=
|
383 |
+
DISCORD_CALLBACK_URL=/oauth/discord/callback
|
384 |
+
|
385 |
+
# Facebook
|
386 |
+
FACEBOOK_CLIENT_ID=
|
387 |
+
FACEBOOK_CLIENT_SECRET=
|
388 |
+
FACEBOOK_CALLBACK_URL=/oauth/facebook/callback
|
389 |
+
|
390 |
+
# GitHub
|
391 |
+
GITHUB_CLIENT_ID=
|
392 |
+
GITHUB_CLIENT_SECRET=
|
393 |
+
GITHUB_CALLBACK_URL=/oauth/github/callback
|
394 |
+
|
395 |
+
# Google
|
396 |
+
GOOGLE_CLIENT_ID=
|
397 |
+
GOOGLE_CLIENT_SECRET=
|
398 |
+
GOOGLE_CALLBACK_URL=/oauth/google/callback
|
399 |
+
|
400 |
+
# OpenID
|
401 |
+
OPENID_CLIENT_ID=
|
402 |
+
OPENID_CLIENT_SECRET=
|
403 |
+
OPENID_ISSUER=
|
404 |
+
OPENID_SESSION_SECRET=
|
405 |
+
OPENID_SCOPE="openid profile email"
|
406 |
+
OPENID_CALLBACK_URL=/oauth/openid/callback
|
407 |
+
OPENID_REQUIRED_ROLE=
|
408 |
+
OPENID_REQUIRED_ROLE_TOKEN_KIND=
|
409 |
+
OPENID_REQUIRED_ROLE_PARAMETER_PATH=
|
410 |
+
# Set to determine which user info property returned from OpenID Provider to store as the User's username
|
411 |
+
OPENID_USERNAME_CLAIM=
|
412 |
+
# Set to determine which user info property returned from OpenID Provider to store as the User's name
|
413 |
+
OPENID_NAME_CLAIM=
|
414 |
+
|
415 |
+
OPENID_BUTTON_LABEL=
|
416 |
+
OPENID_IMAGE_URL=
|
417 |
+
|
418 |
+
# LDAP
|
419 |
+
LDAP_URL=
|
420 |
+
LDAP_BIND_DN=
|
421 |
+
LDAP_BIND_CREDENTIALS=
|
422 |
+
LDAP_USER_SEARCH_BASE=
|
423 |
+
LDAP_SEARCH_FILTER=mail={{username}}
|
424 |
+
LDAP_CA_CERT_PATH=
|
425 |
+
# LDAP_TLS_REJECT_UNAUTHORIZED=
|
426 |
+
# LDAP_LOGIN_USES_USERNAME=true
|
427 |
+
# LDAP_ID=
|
428 |
+
# LDAP_USERNAME=
|
429 |
+
# LDAP_EMAIL=
|
430 |
+
# LDAP_FULL_NAME=
|
431 |
+
|
432 |
+
#========================#
|
433 |
+
# Email Password Reset #
|
434 |
+
#========================#
|
435 |
+
|
436 |
+
EMAIL_SERVICE=
|
437 |
+
EMAIL_HOST=
|
438 |
+
EMAIL_PORT=25
|
439 |
+
EMAIL_ENCRYPTION=
|
440 |
+
EMAIL_ENCRYPTION_HOSTNAME=
|
441 |
+
EMAIL_ALLOW_SELFSIGNED=
|
442 |
+
EMAIL_USERNAME=
|
443 |
+
EMAIL_PASSWORD=
|
444 |
+
EMAIL_FROM_NAME=
|
445 |
+
EMAIL_FROM=noreply@librechat.ai
|
446 |
+
|
447 |
+
#========================#
|
448 |
+
# Firebase CDN #
|
449 |
+
#========================#
|
450 |
+
|
451 |
+
FIREBASE_API_KEY=
|
452 |
+
FIREBASE_AUTH_DOMAIN=
|
453 |
+
FIREBASE_PROJECT_ID=
|
454 |
+
FIREBASE_STORAGE_BUCKET=
|
455 |
+
FIREBASE_MESSAGING_SENDER_ID=
|
456 |
+
FIREBASE_APP_ID=
|
457 |
+
|
458 |
+
#========================#
|
459 |
+
# Shared Links #
|
460 |
+
#========================#
|
461 |
+
|
462 |
+
ALLOW_SHARED_LINKS=true
|
463 |
+
ALLOW_SHARED_LINKS_PUBLIC=true
|
464 |
+
API_KEY="sk-wkrOfwj4YxzAsqWa577e28702a05495c921414157e9c4c27"
|
465 |
+
#==============================#
|
466 |
+
# Static File Cache Control #
|
467 |
+
#==============================#
|
468 |
+
|
469 |
+
# Leave commented out to use defaults: 1 day (86400 seconds) for s-maxage and 2 days (172800 seconds) for max-age
|
470 |
+
# NODE_ENV must be set to production for these to take effect
|
471 |
+
# STATIC_CACHE_MAX_AGE=172800
|
472 |
+
# STATIC_CACHE_S_MAX_AGE=86400
|
473 |
+
|
474 |
+
# If you have another service in front of your LibreChat doing compression, disable express based compression here
|
475 |
+
# DISABLE_COMPRESSION=true
|
476 |
+
|
477 |
+
#===================================================#
|
478 |
+
# UI #
|
479 |
+
#===================================================#
|
480 |
+
|
481 |
+
APP_TITLE=LibreChat
|
482 |
+
# CUSTOM_FOOTER="My custom footer"
|
483 |
+
HELP_AND_FAQ_URL=https://librechat.ai
|
484 |
+
|
485 |
+
# SHOW_BIRTHDAY_ICON=true
|
486 |
+
|
487 |
+
# Google tag manager id
|
488 |
+
#ANALYTICS_GTM_ID=user provided google tag manager id
|
489 |
+
|
490 |
+
#==================================================#
|
491 |
+
# Others #
|
492 |
+
#==================================================#
|
493 |
+
# You should leave the following commented out #
|
494 |
+
|
495 |
+
# NODE_ENV=
|
496 |
+
|
497 |
+
# REDIS_URI=
|
498 |
+
# USE_REDIS=
|
499 |
+
|
500 |
+
# E2E_USER_EMAIL=
|
501 |
+
# E2E_USER_PASSWORD=
|
502 |
+
|
503 |
+
#=====================================================#
|
504 |
+
# Cache Headers #
|
505 |
+
#=====================================================#
|
506 |
+
# Headers that control caching of the index.html #
|
507 |
+
# Default configuration prevents caching to ensure #
|
508 |
+
# users always get the latest version. Customize #
|
509 |
+
# only if you understand caching implications. #
|
510 |
+
|
511 |
+
# INDEX_HTML_CACHE_CONTROL=no-cache, no-store, must-revalidate
|
512 |
+
# INDEX_HTML_PRAGMA=no-cache
|
513 |
+
# INDEX_HTML_EXPIRES=0
|
514 |
+
|
515 |
+
# no-cache: Forces validation with server before using cached version
|
516 |
+
# no-store: Prevents storing the response entirely
|
517 |
+
# must-revalidate: Prevents using stale content when offline
|