- Add intelligent auto-enhancement that detects viable content elements - Replace manual enhancement with automated container-first detection - Support inline formatting (strong, em, span, links) within editable content - Streamline demo workflow: just demo shows options, auto-enhances on demand - Clean up legacy commands and simplify directory structure - Auto-enhancement goes directly from source to demo-ready (no intermediate dirs) - Add Dan Eden portfolio and simple test sites for real-world validation - Auto-enhanced 40 elements in Dan Eden portfolio, 5 in simple site - Achieve true zero-configuration CMS experience
50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
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
|
|
sites: # Registered sites for file-based enhancement
|
|
- site_id: "demo"
|
|
path: "./demo-site"
|
|
domain: "localhost:3000"
|
|
auto_enhance: true
|
|
backup_originals: true
|
|
- site_id: "dan-eden-test"
|
|
path: "./test-sites/simple/dan-eden-portfolio"
|
|
domain: "localhost:3001"
|
|
auto_enhance: true
|
|
backup_originals: true
|
|
# Example additional site configuration:
|
|
# - site_id: "mysite"
|
|
# path: "/var/www/mysite"
|
|
# domain: "mysite.example.com"
|
|
# auto_enhance: true
|
|
# backup_originals: true
|
|
|
|
# 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
|
|
|
|
# Authentication configuration
|
|
auth:
|
|
provider: "mock" # "mock", "jwt", "authentik"
|
|
jwt_secret: "" # JWT signing secret (auto-generated in dev mode)
|
|
# Authentik OIDC configuration (for production)
|
|
oidc:
|
|
endpoint: "" # https://auth.example.com/application/o/insertr/
|
|
client_id: "" # insertr-client
|
|
client_secret: "" # OAuth2 client secret |