Files
insertr/insertr.yaml
Joakim 71561316da Fix demo site auto-enhancement and content persistence
- Restructure demo directory from test-sites/ to demos/ with flattened layout
- Add auto-enhancement on server startup for all sites with auto_enhance: true
- Fix inconsistent content ID generation that prevented dan-eden-portfolio content persistence
- Update server configuration to enhance from source to separate output directories
- Remove manual enhancement from justfile in favor of automatic server enhancement
- Clean up legacy test files and unused restore command
- Update build system to use CDN endpoint instead of file copying
2025-09-17 00:07:40 +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"
domain: "localhost:3000"
auto_enhance: true
- site_id: "simple"
path: "./demos/simple_enhanced"
source_path: "./demos/simple"
domain: "localhost:3000"
auto_enhance: true
- site_id: "dan-eden-portfolio"
path: "./demos/dan-eden-portfolio_enhanced"
source_path: "./demos/dan-eden-portfolio"
domain: "localhost:3000"
auto_enhance: true
# Example additional site configuration:
# - site_id: "mysite"
# path: "/var/www/mysite"
# domain: "mysite.example.com"
# 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