-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
58 lines (49 loc) · 2.04 KB
/
.env.example
File metadata and controls
58 lines (49 loc) · 2.04 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
57
58
# RAG-Vault Environment Variables
# Copy this file to .env and customize as needed
# ===========================================
# API Authentication
# ===========================================
# Optional API key for securing the HTTP server
# Leave empty for local-only mode (no authentication required)
# RAG_API_KEY=your-secret-api-key-here
# ===========================================
# CORS Configuration
# ===========================================
# Comma-separated list of allowed origins, or "*" for all origins
# Default: http://localhost:5173,http://localhost:3000,http://127.0.0.1:5173,http://127.0.0.1:3000
# CORS_ORIGINS=http://localhost:5173,http://localhost:3000
# ===========================================
# Request Limits
# ===========================================
# Maximum JSON body size for requests (default: 5mb)
# JSON_BODY_LIMIT=5mb
# ===========================================
# Database Scanning
# ===========================================
# Comma-separated list of directories allowed for database scanning
# Default: user's home directory
# ALLOWED_SCAN_ROOTS=/home/user/documents,/home/user/projects
# ===========================================
# Rate Limiting
# ===========================================
# Time window for rate limiting in milliseconds (default: 60000 = 1 minute)
# RATE_LIMIT_WINDOW_MS=60000
# Maximum requests per window (default: 100)
# RATE_LIMIT_MAX_REQUESTS=100
# ===========================================
# Logging
# ===========================================
# Enable detailed request logging (default: false)
# Set to "true" for debugging
# REQUEST_LOGGING=false
# ===========================================
# Embedding Runtime
# ===========================================
# Transformers.js device hint (default: auto)
# Common values: auto, cpu, cuda, dml, webgpu
# RAG_EMBEDDING_DEVICE=auto
# ===========================================
# Server Configuration
# ===========================================
# Port for the HTTP server (default: 3000)
# WEB_PORT=3000