From 96acf3af07138b67b09e919dbda70ae58bc285a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A8ve=20Caillault?= Date: Tue, 28 Apr 2026 23:28:45 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20du=20fichier=20README=20?= =?UTF-8?q?pour=20mkcert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 1732d8d..2dffc6e 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,30 @@ Générer les fichiers pour le certificat .localhost : + ````shell openssl req -x509 -nodes -days 365 -newkey rsa:2048 \ -keyout ./certs/localhost.key -out ./certs/localhost.crt \ -subj "/CN=*.localhost" ```` +Vous pouvez aussi utiliser mkcert: + +````shell +sudo apt install libnss3-tools +sudo apt install mkcert +mkcert -install +mkcert -cert-file certs/localhost.crt -key-file certs/localhost.key "*.localhost" +```` + Créer le réseau frontend : ````shell docker network create frontend ```` Pour générer le htpasswd nécessaire pour le dashboard de Traefik : + ````shell sudo apt install apache2-utils htpasswd -nb username "password" | sed -e 's/\$/\$\$/g' ```` + Remplacer la valeur obtenue dans le fichier .env (TRAEFIK_HTPASSWD).