Set-OPS-Public/promo/formation/dev-03/slides/nginx.html
Daniel Allaire f08a0efa6d formation : le parcours developpeur, cinq modules et trois atlas (288)
Pour qui ecrit une application qu'un ecosysteme Set-OPS heberge, sans acces aux
serveurs : D1 Heberger chez Set-OPS, D2 Le contrat, D3 Le site web statique,
D4 L'application Python, D5 Publier une version (58 diapositives), et trois
atlas interactifs conformes a la CSP du site web de l'Alliance.

Faits tires du guide du developpeur et recoupes dans le code. Une reconstruction
du dorsal repose « derniere », la version notee n'etant qu'un plancher : apres un
retour arriere, la version fautive revient si elle reste la plus haute. D5 et
l'atlas le disent.

Publie par la premiere vraie bascule de make contenu (site_alliance v1.4.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 18:38:28 -05:00

23 lines
4.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<section id="nginx" data-transition="fade" style="background:#131B36;color:#EEF2F8;font-family:'IBM Plex Sans', Arial, sans-serif;padding:128px 128px 160px;display:flex;flex-direction:column;gap:36px">
<div style="display:flex;flex-direction:column;gap:16px">
<p style="font-size:24px;letter-spacing:3px;text-transform:uppercase;color:#4FE3C1;font-weight:600">Ce que nginx fait de vos fichiers</p>
<h2 style="font-family:'Source Serif 4', Georgia, serif;font-size:68px;font-weight:400;line-height:1.1;color:#EEF2F8">Des règles simples, à connaître une fois.</h2>
</div>
<div style="display:grid;grid-template-columns:480px 1fr;column-gap:36px;align-items:start">
<p style="font-size:22px;letter-spacing:2px;text-transform:uppercase;color:#8592AD;font-weight:600;padding:0 0 10px">Vous demandez</p>
<p style="font-size:22px;letter-spacing:2px;text-transform:uppercase;color:#8592AD;font-weight:600;padding:0 0 10px">nginx sert</p>
<p style="font-size:28px;line-height:1.35;color:#4FE3C1;font-weight:600;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">/faq</span></p>
<p style="font-size:28px;line-height:1.35;color:#BCC7DA;font-weight:400;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">faq.html</span> : vos liens peuvent omettre <span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">.html</span></p>
<p style="font-size:28px;line-height:1.35;color:#4FE3C1;font-weight:600;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">/dossier/</span></p>
<p style="font-size:28px;line-height:1.35;color:#BCC7DA;font-weight:400;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">dossier/index.html</span></p>
<p style="font-size:28px;line-height:1.35;color:#4FE3C1;font-weight:600;padding:14px 0;border-top:1px solid #2A3556">une page absente</p>
<p style="font-size:28px;line-height:1.35;color:#BCC7DA;font-weight:400;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">404.html</span>, que vous fournissez à la racine servie</p>
<p style="font-size:28px;line-height:1.35;color:#4FE3C1;font-weight:600;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">/assets/…</span></p>
<p style="font-size:28px;line-height:1.35;color:#BCC7DA;font-weight:400;padding:14px 0;border-top:1px solid #2A3556">en cache 7 jours : un fichier qui change change de nom (<span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">style.v2.css</span>)</p>
<p style="font-size:28px;line-height:1.35;color:#4FE3C1;font-weight:600;padding:14px 0;border-top:1px solid #2A3556">HTML, CSS, JS, SVG</p>
<p style="font-size:28px;line-height:1.35;color:#BCC7DA;font-weight:400;padding:14px 0;border-top:1px solid #2A3556">compressés à la volée</p>
</div>
<p style="position:absolute;left:128px;bottom:64px;width:1400px;font-size:24px;color:#8592AD">Set-OPS · Formation · Module D3 — Le site web statique</p>
<p style="position:absolute;right:128px;bottom:64px;width:120px;text-align:right;font-size:24px;color:#8592AD">06</p>
<aside>Ce que nginx fait de vos fichiers tient en cinq règles. Une adresse sans extension sert le fichier html du même nom : vos liens peuvent omettre .html. Un dossier sert son index. Une page absente sert votre 404.html, que vous fournissez à la racine servie : sans lui, le visiteur verrait la page d’erreur générique de nginx. Tout ce qui est sous /assets/ est mis en cache sept jours par le navigateur : un fichier qui change doit donc changer de nom, sinon vos visiteurs garderont l’ancien une semaine. Une empreinte dans le nom, ou un numéro de version, règle le problème ; ailleurs qu’en /assets/, le navigateur décide seul, et une empreinte en suffixe d’adresse reste une bonne habitude. Enfin, HTML, CSS, JavaScript et SVG sont compressés.</aside>
</section>