Some checks failed
Lint & Test / test (push) Failing after 28s
Replace 22 individual JSON store files with a single SQLite database (data/ledgrab.db). All entity stores now use BaseSqliteStore backed by SQLite with WAL mode, write-through caching, and thread-safe access. - Add Database class with SQLite backup/restore API - Add BaseSqliteStore as drop-in replacement for BaseJsonStore - Convert all 16 entity stores to SQLite - Move global settings (MQTT, external URL, auto-backup) to SQLite settings table - Replace JSON backup/restore with SQLite snapshot backups (.db files) - Remove partial export/import feature (backend + frontend) - Update demo seed to write directly to SQLite - Add "Backup Now" button to settings UI - Remove StorageConfig file path fields (single database_file remains)
32 lines
644 B
YAML
32 lines
644 B
YAML
# Demo mode configuration
|
|
# Loaded automatically when WLED_DEMO=true is set.
|
|
# Uses isolated data directory (data/demo/) and a pre-configured API key
|
|
# so the demo works out of the box with zero setup.
|
|
|
|
demo: true
|
|
|
|
server:
|
|
host: "0.0.0.0"
|
|
port: 8081
|
|
log_level: "INFO"
|
|
# CORS: restrict to localhost by default.
|
|
# For LAN access, add your machine's IP, e.g. "http://192.168.1.100:8081"
|
|
cors_origins:
|
|
- "http://localhost:8081"
|
|
|
|
auth:
|
|
api_keys:
|
|
demo: "demo"
|
|
|
|
storage:
|
|
database_file: "data/ledgrab.db"
|
|
|
|
mqtt:
|
|
enabled: false
|
|
|
|
logging:
|
|
format: "text"
|
|
file: "logs/wled_controller.log"
|
|
max_size_mb: 100
|
|
backup_count: 5
|