Files
insertr/insertr.yaml
Joakim eabb7b16e8 Clean up legacy code after unified architecture implementation
- Remove obsolete cmd/auto_enhance.go command (replaced by unified enhance)
- Implement EnhanceInPlace method using unified pipeline
- Remove generated demo files from git tracking
- Verify all functionality works after cleanup:
  * go build successful
  * enhance command working correctly
  * unified pipeline (discovery → ID generation → content injection) verified
  * clean command structure (only enhance, serve, restore commands)

The codebase is now clean with no legacy auto-enhance references or stub implementations. All functionality consolidated into the unified Discoverer + Enhancer architecture.
2025-09-16 18:40:00 +02:00

56 lines
1.9 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: "./test-sites/demo-site_enhanced"
domain: "localhost:3000"
auto_enhance: true
backup_originals: true
- site_id: "simple"
path: "./test-sites/simple/test-simple_enhanced"
domain: "localhost:3000"
auto_enhance: true
backup_originals: true
- site_id: "dan-eden"
path: "./test-sites/simple/dan-eden-portfolio_enhanced"
domain: "localhost:3000"
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
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", "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