From 51514e5c5afe399add0b297a0c55e8b85f554aa8 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 24 Jan 2019 18:56:12 +0100 Subject: [PATCH] erreurs HTTP perso sur haproxy --- services/errorfiles/503.html | 39 ++++++++++++++++++++++++++++++++++++ services/haproxy-acme.nix | 1 + 2 files changed, 40 insertions(+) create mode 100644 services/errorfiles/503.html diff --git a/services/errorfiles/503.html b/services/errorfiles/503.html new file mode 100644 index 0000000..c511c00 --- /dev/null +++ b/services/errorfiles/503.html @@ -0,0 +1,39 @@ +HTTP/1.0 503 Service Unavailable +Cache-Control: no-cache +Connection: close +Content-Type: text/html + + + + + + + + 503 Service Unavailable + + + + + + + +

503 Service non disponible

+ +

Impossible de contacter le serveur demandé

+ + diff --git a/services/haproxy-acme.nix b/services/haproxy-acme.nix index e472723..ad59904 100644 --- a/services/haproxy-acme.nix +++ b/services/haproxy-acme.nix @@ -23,6 +23,7 @@ let timeout client 10s timeout connect 4s timeout server 30s + errorfile 503 ${./errorfiles/503.html} userlist LOUTRE user paul password $6$YNjCpiPABu9$.iEp.3BgoswHcX3SMjz1/CiyqFQn/fjnxtT9CWBqQHBKynvK2kh/i62ije0WmCvhKRUhy9gdVbJStM3ciGXnC1 frontend public