Files
insertr/insertr.yaml
Joakim cd202ebb1d Migrate to Chi router and add Norwegian Devigo demo
Major improvements:
- Replace Gorilla Mux with Chi v5 router for better performance and cleaner code
- Fix CSS/JS MIME type issues that prevented proper asset loading
- Add built-in CORS middleware replacing manual OPTIONS handlers
- Simplify routing with nested route syntax
- Update URL parameter extraction from mux.Vars to chi.URLParam

New Devigo demo:
- Add production Norwegian sales training website (devigo.no)
- Real-world Hugo-generated content with TailwindCSS
- 39 insertr-enhanced elements for comprehensive CMS testing
- Demonstrates international language support and B2B use cases
- Fixed asset paths for localhost serving compatibility

Technical benefits:
- Automatic MIME type detection for static files
- Reduced code complexity with built-in middleware
- Better performance with lighter dependency stack
- Production-ready CORS handling
2025-09-17 13:34:36 +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: "default"
path: "./demos/default_enhanced"
source_path: "./demos/default"
auto_enhance: true
- site_id: "simple"
path: "./demos/simple_enhanced"
source_path: "./demos/simple"
auto_enhance: true
- site_id: "dan-eden-portfolio"
path: "./demos/dan-eden-portfolio_enhanced"
source_path: "./demos/dan-eden-portfolio"
auto_enhance: true
- site_id: "devigo-web"
path: "./demos/devigo-web_enhanced"
source_path: "./demos/devigo-web"
auto_enhance: true
# 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", "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