From 9e10025ce9eae1b8168427782b012aebb0b7c05e Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Tue, 16 Apr 2024 14:09:47 +0200 Subject: [PATCH] Ajout d'une page d'erreur pour ngnix --- deployment/scripts/nginx/nginx.conf | 4 ++++ src/agenda_culturel/static/html/500.html | 28 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 src/agenda_culturel/static/html/500.html diff --git a/deployment/scripts/nginx/nginx.conf b/deployment/scripts/nginx/nginx.conf index fb29fe6..c042fbe 100644 --- a/deployment/scripts/nginx/nginx.conf +++ b/deployment/scripts/nginx/nginx.conf @@ -28,5 +28,9 @@ http { location /media/ { alias /usr/src/app/media/; } + + error_page 502 /static/html/500.html; + error_page 503 /static/html/500.html; + } } diff --git a/src/agenda_culturel/static/html/500.html b/src/agenda_culturel/static/html/500.html new file mode 100644 index 0000000..9fbd27d --- /dev/null +++ b/src/agenda_culturel/static/html/500.html @@ -0,0 +1,28 @@ + + + + + + Y'a un p'tit pépin ! + + + + + + +
+
+
+

Y'a un p'tit pépin !

+
+
+
+

On a un p'tit pépin sur le serveur, mais on est certainement en train de le résoudre ! Si ça persiste, envoyez-vous un hibou !

+

L'équipe de pommesdelune.fr

+
+
quelques pommes et leur pépins
+
+
+
+ + \ No newline at end of file