- Remove mock_content setting (working database loop makes it unnecessary) - Change server.dev_mode to global dev_mode setting for consistency - Update CLI to use cli.site_id and cli.output for scoped configuration - Implement database client for CLI enhance command (complete static site loop) - Update justfile to use INSERTR_DATABASE_PATH environment variable - Enable multi-site architecture: server is site-agnostic, CLI is site-specific - Unified insertr.yaml now supports both server and CLI with minimal config
23 lines
748 B
YAML
23 lines
748 B
YAML
# Insertr Unified Configuration
|
|
# Server and CLI configuration - library manages its own config
|
|
|
|
# Global settings
|
|
dev_mode: false # Development mode (affects server CORS, CLI verbosity)
|
|
|
|
# Database configuration
|
|
database:
|
|
path: "./insertr.db" # SQLite file or PostgreSQL connection string
|
|
|
|
# Server configuration (multi-site ready)
|
|
server:
|
|
port: 8080 # HTTP API server port
|
|
|
|
# CLI enhancement configuration
|
|
cli:
|
|
site_id: "demo" # Default site ID for CLI operations
|
|
output: "./dist" # Default output directory for enhanced files
|
|
|
|
# API client configuration (for CLI remote mode)
|
|
api:
|
|
url: "" # Content API URL (empty = use local database)
|
|
key: "" # API authentication key |