39 lines
4.4 KiB
HTML
39 lines
4.4 KiB
HTML
|
|
<section id="schema" 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">Le schéma</p>
|
|||
|
|
<h2 style="font-family:'Source Serif 4', Georgia, serif;font-size:68px;font-weight:400;line-height:1.1;color:#EEF2F8">La boîte où tourne l’application.</h2>
|
|||
|
|
</div>
|
|||
|
|
<div style="display:flex;gap:32px;align-items:stretch">
|
|||
|
|
<div style="flex:1;display:flex;flex-direction:column;gap:4px;background:#0B1022;padding:30px 32px;border-radius:20px;border-top:6px solid #A98BFF;font-family:'JetBrains Mono', 'Courier New', monospace;font-size:23px;line-height:1.45">
|
|||
|
|
<p style="font-family:'IBM Plex Sans', Arial, sans-serif;font-size:24px;letter-spacing:2px;text-transform:uppercase;color:#A98BFF;font-weight:600">L’unité systemd, en substance</p>
|
|||
|
|
<p style="font-size:23px;color:#EEF2F8;white-space:pre">[Service] # généré par Set-OPS</p>
|
|||
|
|
<p style="font-size:23px;color:#EEF2F8;white-space:pre">ExecStart=<votre commande demarrer></p>
|
|||
|
|
<p style="font-size:23px;color:#8592AD;white-space:pre"> # {port} remplacé, sans shell</p>
|
|||
|
|
<p style="font-size:23px;color:#EEF2F8;white-space:pre">User=<sans privilège, sans shell></p>
|
|||
|
|
<p style="font-size:23px;color:#EEF2F8;white-space:pre">Environment=PATH=/usr/bin:/bin</p>
|
|||
|
|
<p style="font-size:23px;color:#8592AD;white-space:pre"> # + CLE_API, PGHOST… depuis la voûte</p>
|
|||
|
|
<p style="font-size:23px;color:#EEF2F8;white-space:pre">BindPaths=<état> → donnees/</p>
|
|||
|
|
<p style="font-size:23px;color:#EEF2F8;white-space:pre">PrivateTmp=true</p>
|
|||
|
|
<p style="font-size:23px;color:#EEF2F8;white-space:pre">NoNewPrivileges=true</p>
|
|||
|
|
<p style="font-size:23px;color:#EEF2F8;white-space:pre">Restart=on-failure</p>
|
|||
|
|
</div>
|
|||
|
|
<div style="display:grid;grid-template-columns:repeat(1, 1fr);gap:28px;align-items:stretch">
|
|||
|
|
<div style="display:flex;flex-direction:column;gap:12px;background:#0B1022;padding:30px 32px;border-radius:18px;border-top:6px solid #56C2FF">
|
|||
|
|
<p style="font-size:24px;letter-spacing:2px;text-transform:uppercase;color:#56C2FF;font-weight:600">lecture seule</p>
|
|||
|
|
<p style="font-size:26px;line-height:1.45;color:#BCC7DA">le code, dans un dossier propre à chaque version</p>
|
|||
|
|
</div>
|
|||
|
|
<div style="display:flex;flex-direction:column;gap:12px;background:#0B1022;padding:30px 32px;border-radius:18px;border-top:6px solid #4FE3C1">
|
|||
|
|
<p style="font-size:24px;letter-spacing:2px;text-transform:uppercase;color:#4FE3C1;font-weight:600">lecture-écriture</p>
|
|||
|
|
<p style="font-size:26px;line-height:1.45;color:#BCC7DA"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">donnees/</span> : votre état, monté depuis l’extérieur du code</p>
|
|||
|
|
</div>
|
|||
|
|
<div style="display:flex;flex-direction:column;gap:12px;background:#0B1022;padding:30px 32px;border-radius:18px;border-top:6px solid #FFC37A">
|
|||
|
|
<p style="font-size:24px;letter-spacing:2px;text-transform:uppercase;color:#FFC37A;font-weight:600">privé, éphémère</p>
|
|||
|
|
<p style="font-size:26px;line-height:1.45;color:#BCC7DA"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">/tmp</span>, vidé à chaque redémarrage</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<p style="position:absolute;left:128px;bottom:64px;width:1400px;font-size:24px;color:#8592AD">Set-OPS · Formation · Module D4 — L’application Python</p>
|
|||
|
|
<p style="position:absolute;right:128px;bottom:64px;width:120px;text-align:right;font-size:24px;color:#8592AD">03</p>
|
|||
|
|
<aside>Voici le schéma du module : la boîte. À gauche, l’unité systemd que Set-OPS génère, en substance. Elle lance votre commande de démarrage, avec le port remplacé, sans passer par un shell. Elle la fait tourner sous un utilisateur sans privilège et sans shell de connexion. Son PATH est réduit au système, et son environnement porte vos secrets et, s’il y a lieu, la connexion à votre base. Votre dossier d’état est monté dans le code, au chemin que vous avez déclaré, depuis un emplacement extérieur. Le /tmp est privé. Le processus ne peut pas acquérir de nouveaux privilèges. Et il redémarre seul s’il plante. À droite, les trois sortes de fichiers : le code en lecture seule, l’état en lecture-écriture, et un /tmp éphémère.</aside>
|
|||
|
|
</section>
|