From df89a04487bbcf9598e3ea2a5758f659dd7dc515 Mon Sep 17 00:00:00 2001 From: Tony AVERTY Date: Fri, 9 Oct 2026 13:44:19 +0200 Subject: [PATCH] =?UTF-8?q?robots.txt=20en=20ASCII=20;=20d=C3=A9ploiement?= =?UTF-8?q?=20:=20annoncer=20l'encodage=20UTF-8=20des=20fichiers=20texte?= =?UTF-8?q?=20(llms.txt,=20sitemap)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- docs/deploiement.md | 7 +++++++ site-src/seo.js | 7 ++++--- site/robots.txt | 6 +++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/deploiement.md b/docs/deploiement.md index 52f4974..6cc5e0f 100644 --- a/docs/deploiement.md +++ b/docs/deploiement.md @@ -104,6 +104,13 @@ Les liens montrés aux clients (QR d'inscription `/c/`, lien de la carte ` client_max_body_size 1m; } ``` + Toujours dans ce bloc `server` (port 8080), annoncer l'encodage UTF-8 des fichiers texte, sinon les accents de + `llms.txt`, `llms-full.txt` et du plan du site s'affichent mal (« é ») : + ```nginx + charset utf-8; + charset_types text/plain text/xml text/css application/javascript application/json; + ``` + Vérification : `curl -sI https://monespacepro.eu/llms.txt | grep -i content-type` doit afficher `text/plain; charset=utf-8`. 3. SSL/TLS → Let's Encrypt (ou certificat d'origine Cloudflare si le proxy orange est activé, mode SSL **Full (strict)**). 4. Dans le `.env` de l'API : `WEB_URL=https://monespacepro.eu`, puis fichier `RESTART`. diff --git a/site-src/seo.js b/site-src/seo.js index c3cc713..139df37 100644 --- a/site-src/seo.js +++ b/site-src/seo.js @@ -643,9 +643,10 @@ function build(OUT) { const DISALLOW = ['/api/', '/carte/', '/espace', '/abonnement/']; const AI_BOTS = ['GPTBot', 'OAI-SearchBot', 'ChatGPT-User', 'ClaudeBot', 'Claude-SearchBot', 'Claude-User', 'PerplexityBot', 'Perplexity-User', 'Google-Extended', 'Applebot-Extended', 'Bingbot', 'DuckAssistBot', 'MistralAI-User', 'Meta-ExternalAgent']; const rules = DISALLOW.map((d) => `Disallow: ${d}`).join('\n'); - fs.writeFileSync(path.join(OUT, 'robots.txt'), `# ${NAME} — consignes aux robots -# Le site public est ouvert à tous les moteurs de recherche et assistants IA. -# Présentation pour les IA : ${BASE}/llms.txt + // ASCII uniquement : le fichier reste lisible même si le serveur n'annonce pas l'encodage UTF-8. + fs.writeFileSync(path.join(OUT, 'robots.txt'), `# ${NAME} - robots.txt +# Public site open to all search engines and AI assistants. +# Presentation for AI assistants: ${BASE}/llms.txt User-agent: * Allow: / diff --git a/site/robots.txt b/site/robots.txt index 20f24be..493cb55 100644 --- a/site/robots.txt +++ b/site/robots.txt @@ -1,6 +1,6 @@ -# MonEspacePro — consignes aux robots -# Le site public est ouvert à tous les moteurs de recherche et assistants IA. -# Présentation pour les IA : https://monespacepro.eu/llms.txt +# MonEspacePro - robots.txt +# Public site open to all search engines and AI assistants. +# Presentation for AI assistants: https://monespacepro.eu/llms.txt User-agent: * Allow: /