forked from ParisNeo/lollms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
42 lines (37 loc) · 1.7 KB
/
Copy path.env.example
File metadata and controls
42 lines (37 loc) · 1.7 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
# $schema: ./schemas/config.schema.json
# Server Configuration
SERVER_HOST="0.0.0.0"
SERVER_PORT="9642"
SERVER_WORKERS=4 # On Windows, this is automatically forced to 1 for stability unless overridden by environment variable.
SERVER_DEBUG=false
HTTPS_ENABLED=false
SSL_CERTFILE=""
SSL_KEYFILE=""
# App Settings
# For user-specific discussion files and SafeStore DBs
APP_DATA_DIR="data"
# Central SQLite DB for users and app settings. If you change this after the first run, you'll need to manually move your database.
DATABASE_URL="sqlite:///./data/app_main.db"
# For session/token use - CHANGE THIS to a long, random string for production
SECRET_KEY="a_very_secret_key_for_flask_sessions_or_jwt"
# How many minutes the access token stays alive (44640 = 1 month)
ACCESS_TOKEN_EXPIRES_MINUTES=44640
# Allow new users to register. Set to false to disable public registration.
ALLOW_NEW_REGISTRATIONS=true
# Registration mode: 'direct' for instant access, 'admin_approval' for manual activation.
REGISTRATION_MODE="admin_approval"
# Public domain or IP for generating accessible links. Auto-detects if empty.
PUBLIC_DOMAIN_NAME=""
# Cache directory for Hugging Face models, relative to APP_DATA_DIR
HUGGINGFACE_CACHE_DIR="huggingface_cache"
# IMPORTANT FOR WINDOWS USERS: Disable symlinks to prevent permission errors when not running as admin.
HF_HUB_ENABLE_SYMLINKS_EXPERIMENTAL="0"
# Initial Admin User (only used if no admin exists on first startup)
INITIAL_ADMIN_USERNAME="admin"
INITIAL_ADMIN_PASSWORD="admin"
# SafeStore Defaults
CACHE_FOLDER="data/cache/safestore"
CHUNK_SIZE=2096
CHUNK_OVERLAP=150
# Global encryption key for user SafeStores. CHANGE THIS for production.
ENCRYPTION_KEY="my_super_secret_safe_store_key_CHANGE_ME"