-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
30 lines (25 loc) · 1.32 KB
/
Copy path.env.example
File metadata and controls
30 lines (25 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copy this file to `.env` and edit values for your server. Anything
# left unset falls back to the default shown in app/config.py.
# Interface/port this app itself listens on.
APP_HOST=0.0.0.0
APP_PORT=8000
# Embedding model powering the optional RAG feature — pullable from
# Settings > Knowledge, same as a chat model.
EMBEDDING_MODEL=hf.co/nomic-ai/nomic-embed-text-v1.5-GGUF:Q8_0
# Signs login session cookies. REQUIRED to set to a real random value
# before this app is reachable by anyone but you — without it, a random
# key is generated on every restart, which logs everyone out each time
# and (worse) means anyone who can read the running process's memory
# could forge a session as any user. Generate one with:
# python3 -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=
# Where the SQLite database and uploaded RAG files live. Defaults to
# ./data next to the app.
# DATA_DIR=/path/to/data
# The database connection string itself. Defaults to a sqlite file inside
# DATA_DIR. NOTE: if you set this explicitly, it takes priority over
# DATA_DIR for the database (though DATA_DIR still controls uploaded RAG
# files) — setting DATA_DIR alone will NOT relocate an already-set
# DATABASE_URL. To fully relocate an instance (e.g. for an isolated test
# run), set both.
# DATABASE_URL=sqlite:////path/to/pAIring.db