diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 47a3f1f..18344f2 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -56,7 +56,8 @@ "mcp__context7__query-docs", "Bash(docker logs:*)", "Bash(docker run:*)", - "Bash(docker exec:*)" + "Bash(docker exec:*)", + "Bash(git reset:*)" ] } } diff --git a/DOCKER-SETUP.md b/DOCKER-SETUP.md new file mode 100644 index 0000000..e80e14c --- /dev/null +++ b/DOCKER-SETUP.md @@ -0,0 +1,81 @@ +# Docker Configuration Guide + +## Configuration des Providers IA + +Le fichier `.env.docker` n'est PAS versionné par Git (.gitignore). Vous devez le créer manuellement sur votre serveur. + +### Étape 1: Créer le fichier `.env.docker` + +Sur votre serveur Proxmox: + +```bash +cd /path/to/Keep +cp .env.docker.example .env.docker +nano .env.docker +``` + +### Étape 2: Configurer selon votre setup + +#### Option A: Ollama dans Docker (service Docker) + +```bash +NEXTAUTH_URL="http://192.168.1.190:3000" +AI_PROVIDER=ollama +OLLAMA_BASE_URL="http://ollama:11434" +OLLAMA_MODEL="granite4:latest" +``` + +**Important:** Utilisez `ollama:11434` (nom du service Docker) PAS `localhost:11434` + +#### Option B: OpenAI (Cloud) + +```bash +NEXTAUTH_URL="http://192.168.1.190:3000" +AI_PROVIDER=openai +OPENAI_API_KEY="sk-votre-cle-ici" +``` + +Puis dans l'interface admin: +1. Configurez Tags Provider → OpenAI +2. Configurez Embeddings Provider → OpenAI +3. Entrez votre clé API + +#### Option C: Ollama sur l'hôte (hors Docker) + +```bash +NEXTAUTH_URL="http://192.168.1.190:3000" +AI_PROVIDER=ollama +OLLAMA_BASE_URL="http://192.168.1.190:11434" +OLLAMA_MODEL="granite4:latest" +``` + +Utilisez l'IP de votre serveur PAS `localhost` + +### Étape 3: Rebuild et redémarrer + +```bash +docker compose down +docker compose build --no-cache keep-notes +docker compose up -d +``` + +### Étape 4: Vérifier dans l'interface Admin + +1. Allez sur http://192.168.1.190:3000/admin/settings +2. Section "AI Settings" +3. Vous pouvez maintenant changer le provider pour Tags et Embeddings indépendamment + +### Problèmes fréquents + +**Erreur: `ECONNREFUSED 127.0.0.1:11434`** +- Problème: Le code essaie d'utiliser `localhost` au lieu du service Docker +- Solution: Assurez-vous que `.env.docker` existe avec `OLLAMA_BASE_URL="http://ollama:11434"` + +**Le provider ne change pas dans l'admin** +- Sauvegardez les modifications dans l'admin +- Rafraîchissez la page (F5) +- Vérifiez "Current value" affichée sous le dropdown + +**Seul la génération de titres fonctionne** +- Vérifiez que le bon provider est sélectionné pour Tags ET Embeddings +- Ce sont 2 providers séparés dans l'interface admin diff --git a/admin.png b/admin.png new file mode 100644 index 0000000..7d559d3 Binary files /dev/null and b/admin.png differ diff --git a/bug icon.png b/bug icon.png new file mode 100644 index 0000000..02b970f Binary files /dev/null and b/bug icon.png differ diff --git a/keep-notes/DOCKER_DEPLOYMENT.md b/keep-notes/DOCKER_DEPLOYMENT.md index 546bbda..ccd0493 100644 --- a/keep-notes/DOCKER_DEPLOYMENT.md +++ b/keep-notes/DOCKER_DEPLOYMENT.md @@ -1,6 +1,6 @@ # 🐳 Docker Deployment Guide for Proxmox -Complete guide to deploy Keep Notes on Proxmox using Docker Compose. +Complete guide to deploy Mento on Proxmox using Docker Compose. ## 📋 Prerequisites @@ -375,7 +375,7 @@ usermod -aG docker ubuntu # Add: features: nesting=1,keyctl=1 ``` -Then deploy Keep Notes as described above. +Then deploy Mento as described above. ## 📚 Additional Resources diff --git a/keep-notes/README.md b/keep-notes/README.md index f025bbf..b3c5d12 100644 --- a/keep-notes/README.md +++ b/keep-notes/README.md @@ -1,8 +1,8 @@ -# Keep Notes - Google Keep Clone +# Mento - Google Keep Clone A beautiful and feature-rich Google Keep clone built with modern web technologies. -![Keep Notes](https://img.shields.io/badge/Next.js-16-black) +![Mento](https://img.shields.io/badge/Next.js-16-black) ![TypeScript](https://img.shields.io/badge/TypeScript-5.0-blue) ![Tailwind CSS](https://img.shields.io/badge/Tailwind-4.0-38bdf8) ![Prisma](https://img.shields.io/badge/Prisma-7.0-2d3748) diff --git a/keep-notes/components/sidebar.tsx b/keep-notes/components/sidebar.tsx index 3fe2528..40212ec 100644 --- a/keep-notes/components/sidebar.tsx +++ b/keep-notes/components/sidebar.tsx @@ -79,7 +79,7 @@ export function Sidebar({ className, user }: { className?: string, user?: any })
- Keep + Mento {t('nav.workspace')}
diff --git a/keep-notes/deploy.sh b/keep-notes/deploy.sh index 7b68c45..8bbd198 100644 --- a/keep-notes/deploy.sh +++ b/keep-notes/deploy.sh @@ -1,11 +1,11 @@ #!/bin/bash -# Keep Notes Docker Deployment Script -# This script helps you build and deploy Keep Notes on Proxmox/Docker +# Mento Docker Deployment Script +# This script helps you build and deploy Mento on Proxmox/Docker set -e -echo "🚀 Keep Notes Docker Deployment" +echo "🚀 Mento Docker Deployment" echo "================================" echo ""