- Toolbar: remove text labels from all icon buttons (AI, Save, Preview, Convert) all buttons now icon-only with title tooltip for accessibility - Toolbar: reposition PanelRight (info panel toggle) to far right after three-dot menu - Versioning: decouple getNoteHistory/restoreNoteVersion from global userAISettings.noteHistory now checks note.historyEnabled directly — unblocks manual per-note history - Versioning: add 'Sauvegarder cette version' button in Versions tab of info panel calls commitNoteHistory with visual feedback (spinner → success state) - note-document-info-panel: import commitNoteHistory, add isSavingVersion state - notes.ts: fix double guard that silently blocked all history operations
78 lines
3.1 KiB
Plaintext
78 lines
3.1 KiB
Plaintext
# =============================================================================
|
|
# Memento Note - Environment Variables
|
|
# Copy this file to .env and fill in the values
|
|
# =============================================================================
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Core (required)
|
|
# -----------------------------------------------------------------------------
|
|
DATABASE_URL="postgresql://memento:memento@localhost:5432/memento"
|
|
NEXTAUTH_SECRET="generate-with-openssl-rand-base64-32"
|
|
NEXTAUTH_URL="http://localhost:3000"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Registration & Admin
|
|
# -----------------------------------------------------------------------------
|
|
# Set to "false" to disable public registration (default: true)
|
|
# ALLOW_REGISTRATION="true"
|
|
|
|
# Admin email - The first user registering with this email gets ADMIN role (REQUIRED)
|
|
# ADMIN_EMAIL="admin@yourdomain.com"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# AI Providers
|
|
# -----------------------------------------------------------------------------
|
|
# Main provider: "openai" | "anthropic" | "anthropic_custom" | "ollama" | "deepseek" | "openrouter" | "custom-openai"
|
|
# AI_PROVIDER="openai"
|
|
|
|
# Per-feature provider overrides (optional, falls back to AI_PROVIDER)
|
|
# AI_PROVIDER_CHAT="openai"
|
|
# AI_PROVIDER_TAGS="anthropic"
|
|
# AI_PROVIDER_EMBEDDING="openai"
|
|
|
|
# Model names (optional, uses provider defaults)
|
|
# AI_MODEL_CHAT="gpt-4o-mini"
|
|
# AI_MODEL_TAGS="claude-sonnet-4-20250514"
|
|
# AI_MODEL_EMBEDDING="text-embedding-3-small"
|
|
|
|
# OpenAI
|
|
# OPENAI_API_KEY="sk-..."
|
|
|
|
# Anthropic (official Messages API — tags/chat only; use another provider for embeddings)
|
|
# ANTHROPIC_API_KEY="sk-ant-api03-..."
|
|
|
|
# Anthropic-compatible Messages API (custom host — ex. MiniMax M2.7, pas OpenAI)
|
|
# Same key as sur https://platform.minimax.io — base URL sans slash final.
|
|
# ANTHROPIC_CUSTOM_API_KEY="<MINIMAX_API_KEY>"
|
|
# ANTHROPIC_CUSTOM_BASE_URL="https://api.minimax.io/anthropic"
|
|
# China: https://api.minimaxi.com/anthropic — Model ID admin: MiniMax-M2.7
|
|
# Embeddings MiniMax: utiliser CUSTOM_* avec https://api.minimax.io/v1
|
|
|
|
# Ollama (local)
|
|
# OLLAMA_BASE_URL="http://localhost:11434"
|
|
|
|
# Custom OpenAI-compatible endpoint (incl. MiniMax OpenAI API /v1)
|
|
# CUSTOM_OPENAI_API_KEY="..."
|
|
# CUSTOM_OPENAI_BASE_URL="https://your-provider.com/v1"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Email (at least one provider required for password reset)
|
|
# -----------------------------------------------------------------------------
|
|
# Resend (https://resend.com)
|
|
# RESEND_API_KEY="re_..."
|
|
|
|
# SMTP
|
|
# SMTP_HOST="smtp.example.com"
|
|
# SMTP_PORT="587"
|
|
# SMTP_USER=""
|
|
# SMTP_PASS=""
|
|
# SMTP_FROM="noreply@example.com"
|
|
# SMTP_SECURE="false"
|
|
# SMTP_IGNORE_CERT="false"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# MCP (Model Context Protocol)
|
|
# -----------------------------------------------------------------------------
|
|
# MCP_SERVER_MODE="disabled"
|
|
# MCP_SERVER_URL=""
|