78 lines
1.9 KiB
Text
78 lines
1.9 KiB
Text
# Application Configuration
|
|
# ========================
|
|
|
|
# Base URL for the application (required, string)
|
|
# Format: http://hostname:port or https://hostname:port
|
|
BASE_URL=http://localhost:8000
|
|
|
|
# CPU Limit for container (optional, float)
|
|
# Number of CPU cores to allocate (e.g., 0.5, 1, 2)
|
|
# Default: 2 (will be used if not specified)
|
|
CPU_LIMIT=2
|
|
|
|
# Snippet character limit (optional, integer)
|
|
# Maximum length for text snippets in characters
|
|
# Default: 100
|
|
SNIPPET_CHAR_LIMIT=100
|
|
|
|
# Debug mode (optional, boolean)
|
|
# Enable debug output when set to True
|
|
# Default: False
|
|
DEBUG=False
|
|
|
|
# Application port (optional, integer)
|
|
# Port the application listens on
|
|
# Default: 5000
|
|
PORT=5000
|
|
|
|
# Number of items per page
|
|
ITEMS_PER_PAGE=50
|
|
|
|
# Elasticsearch Configuration
|
|
# ==========================
|
|
|
|
# Elasticsearch host (required, string)
|
|
# Hostname or IP of Elasticsearch service
|
|
ELASTICSEARCH_HOST=elasticsearch
|
|
|
|
# Elasticsearch username (sensitive, required, string)
|
|
# Admin username for Elasticsearch
|
|
ELASTICSEARCH_USERNAME=admin
|
|
|
|
# Elasticsearch password (sensitive, required, string)
|
|
# Admin password for Elasticsearch
|
|
ELASTICSEARCH_PASSWORD=password
|
|
|
|
|
|
# File Storage Configuration
|
|
# =========================
|
|
|
|
# SMB share path (optional, string)
|
|
# Local path where books are mounted
|
|
# Default: ./smb_share
|
|
SMB_SHARE_PATH=./smb_share
|
|
|
|
# Admin Credentials
|
|
# ================
|
|
|
|
# Admin username for API management (required, string)
|
|
ADMIN_USER=admin
|
|
|
|
# Admin password for API management (required, string)
|
|
ADMIN_PASSWORD=securepassword123
|
|
|
|
|
|
# ElasticSearch credentials
|
|
# ===============
|
|
|
|
# Elastic username
|
|
ELASTICSEARCH_USERNAME = admin
|
|
|
|
# Elastic password
|
|
ELASTICSEARCH_PASSWORD = password
|
|
|
|
# Indexing batch size (smaller batches use less memory), old default - 100
|
|
INDEXING_BATCH_SIZE=1
|
|
|
|
# Delay between batches in seconds (helps prevent memory spikes), old default - 0.5
|
|
INDEXING_BATCH_DELAY=0.1
|