-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
56 lines (43 loc) Β· 3.11 KB
/
Copy path.env.example
File metadata and controls
56 lines (43 loc) Β· 3.11 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# ββ OpenForge Environment Configuration ββββββββββββββββββββββββββββββββββββ
# Copy this file to .env and adjust values before running docker compose up
# ββ Security ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# REQUIRED: Set a strong database password
DB_PASSWORD=changeme
# REQUIRED: Generate with: python3 -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
# If left empty, a new key is generated each restart which breaks stored API key decryption
ENCRYPTION_KEY=
# OPTIONAL: Set a password to enable login-wall authentication (leave empty to disable)
# Accepts plaintext or a bcrypt hash (recommended): python3 -c "import bcrypt; print(bcrypt.hashpw(b'yourpassword', bcrypt.gensalt()).decode())"
ADMIN_PASSWORD=
# Session expiry in hours (default 168 = 7 days)
SESSION_EXPIRY_HOURS=168
# ββ Network βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Host port to expose the app on (container always listens on 3000)
PORT=3100
# ββ Volume Paths ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Workspace files (notes stored as markdown on disk)
WORKSPACE_HOST_PATH=./data/workspace
# User file uploads
UPLOADS_HOST_PATH=./data/uploads
# PostgreSQL data
POSTGRES_DATA_PATH=./data/postgres
# Qdrant vector store
QDRANT_DATA_PATH=./data/qdrant
# HuggingFace / sentence-transformers model cache
# Models are downloaded here once and reused across container rebuilds
# Bind to a persistent host path to avoid re-downloading the ~130MB bge-small model
MODELS_HOST_PATH=/mnt/disk1/models/OpenForge
# ββ Ollama (Local LLM) ββββββββββββββββββββββββββββββββββββββββββββββββββββ
# To use the built-in Ollama container, keep COMPOSE_PROFILES=local-ollama (default).
# To use an external Ollama instance instead:
# 1. Set OLLAMA_URL to your external endpoint (e.g. http://192.168.1.100:11434)
# 2. Remove "local-ollama" from COMPOSE_PROFILES (or set it to empty)
COMPOSE_PROFILES=local-ollama
OLLAMA_URL=http://ollama:11434
OLLAMA_DATA_PATH=./data/ollama
# ββ SearXNG (Web Search) ββββββββββββββββββββββββββββββββββββββββββββββββββ
# SearXNG config directory (default uses bundled settings in docker/searxng)
# SEARXNG_DATA_PATH=./data/searxng
# ββ Logging βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# production-safe default; use 'debug' for verbose output
LOG_LEVEL=warning