feat: QR code terminal + redirection HTTPS automatique

1. QR Code dans le terminal
   - Package qrcode-terminal installé
   - Génération QR code au démarrage serveur
   - Affiche URL dev (5173) ou prod (3000) selon build
   - Scan facile depuis smartphone

2. Redirection HTTP → HTTPS (mode dev)
   - Middleware redirection automatique
   - http://IP:3000https://IP:5173 (dev Vite)
   - Mode prod : à gérer avec nginx/caddy

3. URLs corrigées partout
   - start.sh : URLs HTTPS
   - install/macos.sh : HTTPS
   - install/linux.sh : HTTPS
   - Messages cohérents avec SSL

4. .gitignore
   - Ignore dev-dist/ (fichiers générés Vite)

Améliore drastiquement l'UX : scan QR + accès HTTPS direct.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-05-27 14:48:26 +02:00
parent 79cda9653b
commit 73e141c5db
6 changed files with 54 additions and 10 deletions
+3 -3
View File
@@ -115,12 +115,12 @@ if [ "$1" == "--dev" ]; then
echo "✅ PTT Live démarré (mode dev)"
echo "==================================${NC}"
echo ""
echo "🌐 Accès :"
echo "🌐 Accès client :"
echo " • Local : https://localhost:5173"
echo " • Réseau : https://${NETWORK_IP}:5173"
echo ""
echo "📊 API serveur : http://${NETWORK_IP}:3000"
echo "🎛️ Interface admin : http://${NETWORK_IP}:3000/admin"
echo "📊 API serveur : http://${NETWORK_IP}:3000 (→ redirige vers HTTPS)"
echo "🎛️ Interface admin : https://${NETWORK_IP}:5173/admin"
echo ""
echo -e "${YELLOW}Appuyez sur Ctrl+C pour arrêter${NC}"
echo ""