From 948476b784172d7499660a3056e61eb76763d2cf Mon Sep 17 00:00:00 2001 From: Nicolas Cantu Date: Fri, 22 Aug 2025 14:26:57 +0200 Subject: [PATCH] Configure SSH authentication and update documentation - Switch from HTTPS to SSH for Git operations - Add SSH configuration instructions in README - Update clone instructions to use SSH by default --- README.md | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 523d6a23..5389626a 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,19 @@ Infrastructure Docker complète pour le développement et le déploiement de ser - Docker et Docker Compose installés - Au moins 10 Go d'espace disque disponible - Connexion Internet pour la synchronisation Bitcoin +- Clé SSH configurée pour GitLab (recommandé) ### Installation ```bash -# Cloner le repository -git clone https://git.4nkweb.com/4nk/4NK_node.git +# Cloner le repository (avec SSH) +git clone git@git.4nkweb.com:4nk/4NK_node.git cd 4NK_node +# Ou avec HTTPS (si SSH non configuré) +# git clone https://git.4nkweb.com/4nk/4NK_node.git +# cd 4NK_node + # Lancer tous les services sudo docker-compose up -d @@ -33,6 +38,25 @@ sudo docker-compose up -d sudo docker-compose ps ``` +### Configuration SSH (optionnel mais recommandé) + +Pour une authentification automatique et sécurisée : + +```bash +# Générer une clé SSH (si pas déjà fait) +ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_4nk -C "4nk-automation" + +# Ajouter la clé à l'agent SSH +ssh-add ~/.ssh/id_ed25519_4nk + +# Configurer Git pour utiliser la clé +git config --global core.sshCommand "ssh -i ~/.ssh/id_ed25519_4nk" + +# Ajouter la clé publique à votre compte GitLab +cat ~/.ssh/id_ed25519_4nk.pub +# Copier cette clé dans GitLab > Settings > SSH Keys +``` + ### Services disponibles | Service | Port | Description |