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
This commit is contained in:
parent
7ba333bfb1
commit
948476b784
28
README.md
28
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 |
|
||||
|
Loading…
x
Reference in New Issue
Block a user