Two editor features that were in flight alongside the sound work: - FontSize TipTap extension (rides on textStyle) with Small/Normal/Large/ Title presets in the toolbar; StatusBar + CSS support - Image handling: internal/images handler, upload route + config, client API, EditorCore wiring, and md/html/docx export support for images Claude-Session: https://claude.ai/code/session_016Yr6jELuRc7hyzYLccQKZd
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
# Petal — copy to .env and fill in. All values have local-dev defaults; override as needed.
|
|
|
|
# Server
|
|
PORT=8080
|
|
BASE_URL=http://localhost:8080
|
|
|
|
# Database (SQLite, pure-Go modernc — no cgo)
|
|
DATABASE_PATH=./data/petal.db
|
|
|
|
# On-disk store for images pasted/dropped/inserted in the editor
|
|
IMAGE_DIR=./data/images
|
|
|
|
# LLM
|
|
LLM_BACKEND=vllm # vllm | ollama
|
|
LLM_ENDPOINT=http://localhost:8000 # vLLM :8000, Ollama :11434
|
|
LLM_MODEL= # checkpoint model (small/fast). Never hardcoded.
|
|
LLM_CHAT_MODEL= # Ask Petal model (Mandarin-native). Falls back to LLM_MODEL if empty.
|
|
LLM_TIMEOUT=30s
|
|
|
|
# --- Deferred (not wired in the local-dev build) ---
|
|
|
|
# Auth (Authentik OIDC) — deferred; single hardcoded local user for now
|
|
# SESSION_SECRET=change-me-to-random-64-char-string
|
|
# AUTHENTIK_URL=https://auth.parodia.dev
|
|
# AUTHENTIK_CLIENT_ID=petal
|
|
# AUTHENTIK_CLIENT_SECRET=
|
|
|
|
# Copyleaks (Tier-2 plagiarism) — deferred; needs a public webhook
|
|
# COPYLEAKS_ENABLED=false
|
|
# COPYLEAKS_API_KEY=
|
|
# COPYLEAKS_EMAIL=
|