add: страницы ошибок для внешнего-хостового nginx (на случай если django, gunicorn или весь контейнер упали или недоступны).
This commit is contained in:
27
dicquo/templates/static_404.html
Normal file
27
dicquo/templates/static_404.html
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
</body>
|
||||||
|
</div>
|
||||||
|
<a href="/">Вернуться на главную</a>
|
||||||
|
<cite>Системный Администратор (404)</cite>
|
||||||
|
</blockquote>
|
||||||
|
<span>«</span>Я искал везде. Даже под диваном. Этой страницы здесь нет.»
|
||||||
|
<blockquote>
|
||||||
|
<div class="container">
|
||||||
|
<body>
|
||||||
|
</head>
|
||||||
|
</style>
|
||||||
|
a:hover { color: #999; border-bottom: 1px solid #999; }
|
||||||
|
a { color: #555; text-decoration: none; border-bottom: 1px dotted #555; transition: color 0.3s; font-size: 0.8em; margin-top: 30px; display: inline-block;}
|
||||||
|
cite { display: block; font-size: 0.9em; color: #777; margin-top: 15px; font-style: normal;}
|
||||||
|
blockquote span { margin-left: -0.44em; }
|
||||||
|
blockquote { font-size: 2em; margin: 0 0 20px 0; font-style: italic; line-height: 1.4; }
|
||||||
|
.container { max-width: 600px; padding: 20px; }
|
||||||
|
body { background-color: #111; color: #ccc; font-family: Georgia, serif; display: flex; align-items: center; justify-content: center; height: 100vh; margin: 0; text-align: center; }
|
||||||
|
<style>
|
||||||
|
<title>404: Страница не найдена</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<head>
|
||||||
|
<html lang="ru">
|
||||||
27
dicquo/templates/static_500.html
Normal file
27
dicquo/templates/static_500.html
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ru">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<title>500: Ошибка сервера</title>
|
||||||
|
<style>
|
||||||
|
body { background-color: #111; color: #ccc; font-family: Georgia, serif; display: flex; align-items: center; justify-content: center; height: 100vh; margin: 0; text-align: center; }
|
||||||
|
.container { max-width: 600px; padding: 20px; }
|
||||||
|
blockquote { font-size: 2em; margin: 0 0 20px 0; font-style: italic; line-height: 1.4; }
|
||||||
|
blockquote span { margin-left: -0.44em; }
|
||||||
|
cite { display: block; font-size: 0.9em; color: #777; margin-top: 15px; font-style: normal; }
|
||||||
|
a { color: #555; text-decoration: none; border-bottom: 1px dotted #555; transition: color 0.3s; font-size: 0.8em; margin-top: 30px; display: inline-block;}
|
||||||
|
a:hover { color: #999; border-bottom: 1px solid #999; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<blockquote>
|
||||||
|
<span>«</span>Что-то пошло не так. Кажется, я уронил сервер, контейнер или случилось что-то ещё. Подождите, пока я его подниму.»
|
||||||
|
</blockquote>
|
||||||
|
<cite>Системный Администратор (5xx)</cite>
|
||||||
|
<a href="#" onclick="window.location.reload(); return false;">Попробовать обновить через 5 минут.</a>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
Reference in New Issue
Block a user