Repository navigation
feat(deploy): front sur un serveur dédié et annonce de l'IA hors ligne - #9
Merged
Merged
Conversation
mathiscapart
force-pushed
the
mathiscapart/ia-hors-ligne
branch
from
September 17, 2026 15:08
9bfff98 to
170e6a6
Compare
Le front (nginx, Traefik, cloudflared) tourne sur un serveur toujours allumé ; l'API reste sur le PC du GPU, allumé à la demande, jointe via le réseau local. - front : /health vérifié au chargement (5 s) ; en échec, bouton Parler désactivé et message hors ligne avec lien LinkedIn - Traefik : API sur 192.168.1.75:8000, dialTimeout 2s pour un 502 rapide - start-natif.ps1 : interface d'écoute configurable via API_HOST - docs : topologie, pare-feu Windows et mise en place du serveur front Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contexte
Le front passe sur un serveur dédié (Debian 13, toujours allumé). Le GPU reste sur le PC, allumé seulement à la demande : le site doit l'annoncer quand l'IA est injoignable.
Changements
VoiceChat.tsx) :GET /api/healthau chargement (délai 5 s). En échec (réseau, 502/504, Qdrant/Ollama absent) : bouton Parler désactivé, message « hors ligne » (ressources et coût) avec liens parcours écrit et LinkedIn.portfolio.yml) : API jointe sur192.168.1.75:8000,serversTransportavecdialTimeout: 2s.host.docker.internalretiré, commentaires adaptés.start-natif.ps1:API_HOST(défaut127.0.0.1, production192.168.1.75).exploitation.md(topologie, section 10 mise en place du serveur front),frontend.md,CLAUDE.md.Vérifications
npx vitest run: 22/22 (3 nouveaux tests : fetch rejeté, 502, API disponible) ;tsc --noEmitpropre.portfolio-api@fileactivé,serversTransport: pc-gpu, aucune erreur ni warning.docker compose configet parsing PowerShell OK.python.exeen entrée sur tous les ports depuis partout. Les désactiver et n'autoriser que le serveur front sur 8000 (docs/exploitation.md§10), sinon le LAN contourne le rate-limit.127.0.0.1, le vocal tombe.🤖 Generated with Claude Code