b968ec8aa5
Reverse proxy Nginx (image stable-alpine) qui sert l'app upstream ou une page de maintenance 503 selon l'IP du client. - Modes whitelist/blacklist commutables via MAINTENANCE_MODE - Liste IPv4 via MAINTENANCE_IP_LIST (séparée par virgules, validée au boot) - Logique en directives Nginx natives (geo + map), zéro Lua/njs - Page statique sobre HTML+CSS inline, zéro JS, zéro réseau sortant - Log dédié /var/log/nginx/maintenance.log pour les requêtes bloquées - Validation des env vars dans /docker-entrypoint.d/10-init.sh - Stack Docker + docker-compose pour dev local et tests - 6 cas de tests d'intégration (whitelist/blacklist x autorisée/bloquée + log + nginx -t) - Lint shellcheck propre sur tous les scripts shell
79 lines
2.2 KiB
HTML
79 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="robots" content="noindex">
|
|
<title>Site en maintenance</title>
|
|
<style>
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
background-color: #fafaf9;
|
|
color: #1c1917;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
main {
|
|
max-width: 480px;
|
|
width: 100%;
|
|
text-align: center;
|
|
padding: 40px 24px;
|
|
}
|
|
|
|
.icon {
|
|
width: 64px;
|
|
height: 64px;
|
|
color: #0891b2;
|
|
margin: 0 auto 24px;
|
|
display: block;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 30px;
|
|
font-weight: 600;
|
|
margin: 0 0 12px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
p {
|
|
font-size: 16px;
|
|
margin: 0 0 8px;
|
|
color: #44403c;
|
|
}
|
|
|
|
p.subtle {
|
|
font-size: 14px;
|
|
color: #78716c;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
h1 { font-size: 26px; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>
|
|
</svg>
|
|
<h1>Site en maintenance</h1>
|
|
<p>Nous effectuons actuellement une opération de maintenance sur le service.</p>
|
|
<p>Le site sera de nouveau accessible sous peu.</p>
|
|
<p class="subtle">Merci de votre patience.</p>
|
|
</main>
|
|
</body>
|
|
</html>
|