- Implement complete mushroom foraging blog with chanterelles article - Add rich demonstration of .insertr and .insertr-add functionality - Include comprehensive documentation for future .insertr-content vision - Update project styling and configuration to support blog demo - Enhance engine and API handlers for improved content management
67 lines
2.4 KiB
YAML
67 lines
2.4 KiB
YAML
# Insertr Unified Configuration
|
|
# Server and CLI configuration - library manages its own config
|
|
|
|
# Global settings
|
|
dev_mode: true # 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: "blog"
|
|
path: "./demos/blog_enhanced"
|
|
source_path: "./demos/blog/"
|
|
auto_enhance: true
|
|
- site_id: "default"
|
|
path: "./demos/default_enhanced"
|
|
source_path: "./demos/default"
|
|
auto_enhance: true
|
|
discovery:
|
|
enabled: false # Uses explicit class="insertr" markings
|
|
aggressive: false
|
|
- site_id: "simple"
|
|
path: "./demos/simple_enhanced"
|
|
source_path: "./demos/simple"
|
|
auto_enhance: true
|
|
discovery:
|
|
enabled: false # Uses explicit class="insertr" markings
|
|
aggressive: false
|
|
# Example additional site configuration:
|
|
# - site_id: "mysite"
|
|
# path: "/var/www/mysite"
|
|
# auto_enhance: true
|
|
|
|
|
|
# CLI enhancement configuration
|
|
cli:
|
|
site_id: "default" # Default site ID for CLI operations
|
|
output: "./dist" # Default output directory for enhanced files
|
|
inject_demo_gate: true # Inject demo gate in development mode if no gates exist
|
|
|
|
# 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" for development, "authentik" for production
|
|
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 (OAuth2 client ID from Authentik)
|
|
client_secret: "" # OAuth2 client secret (or use AUTHENTIK_CLIENT_SECRET env var)
|
|
|
|
# Library asset configuration
|
|
library:
|
|
base_url: "http://localhost:8080" # Base URL for development
|
|
use_cdn: false # Use CDN in production
|
|
cdn_base_url: "https://cdn.jsdelivr.net/npm/@insertr/lib"
|
|
minified: false # Use full version for debugging
|
|
version: "1.0.0" # Library version
|