Add unavailable page when PHP-FPM is down: Caddy handle_errors on 502/503
- Create unavailable.html static page with neo-brutalist design and retry button - Add handle_errors in Caddy for 502/503: serve unavailable.html - Add dial/read/write timeouts to php_fastcgi (5s/30s/30s) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
26
public/unavailable.html
Normal file
26
public/unavailable.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Site indisponible - E-Ticket</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #fbfbfb; font-family: system-ui, sans-serif; color: #111827; padding: 1rem; }
|
||||
.card { border: 4px solid #111827; box-shadow: 6px 6px 0 #111827; background: white; padding: 3rem; max-width: 500px; width: 100%; text-align: center; }
|
||||
h1 { font-size: 2rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; font-style: italic; margin-bottom: 1rem; }
|
||||
p { font-weight: 700; color: #6b7280; font-style: italic; margin-bottom: 1.5rem; }
|
||||
.icon { font-size: 3rem; margin-bottom: 1rem; }
|
||||
.btn { display: inline-block; padding: 0.75rem 2rem; border: 3px solid #111827; box-shadow: 4px 4px 0 #111827; background: #fabf04; font-weight: 900; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.1em; text-decoration: none; color: #111827; cursor: pointer; }
|
||||
.btn:hover { background: #4f46e5; color: white; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="card">
|
||||
<div class="icon">⚠</div>
|
||||
<h1>Site temporairement indisponible</h1>
|
||||
<p>Le serveur ne repond pas pour le moment. Veuillez reessayer dans quelques instants.</p>
|
||||
<a href="/" class="btn" onclick="location.reload(); return false;">Reessayer</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user