Show error page when Hydra is down
Eelco Dolstra committed
Jul 1, 2015 at 10:51 UTC
3f2c52471d6182a9d973b494bc0d5d51ea0509a1
2 files changed
+32
delft/apache-errors/503.html
new
+24
@@ -0,0 +1,24 @@
1
+<!DOCTYPE html>
2
+
3
+<html>
4
+
5
+ <head>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
+ <title>Hydra is down</title>
8
+ <style type="text/css" media="screen">
9
+ body {
10
+ font-family: Helvetica, Arial, sans-serif;
11
+ color: rgba(0, 0, 0, 0.7);
12
+ }
13
+ </style>
14
+ </head>
15
+
16
+ <body>
17
+ <center>
18
+ <img src="/apache-errors/warning.png" alt="Warning" />
19
+ <p>Looks like Hydra is having some problems. Sorry about that!</p>
20
+ <p style="font-size: 90%;"><a href="https://nixos.org/">NixOS homepage</a> · <a href="http://buildfarm.st.ewi.tudelft.nl/zabbix/screens.php">Buildfarm status</a></p>
21
+ </center>
22
+ </body>
23
+
24
+</html>
delft/delft-webserver.nix
+8
@@ -67,6 +67,8 @@ let
67
68
ProxyRequests Off
69
ProxyPreserveHost On
70
+ ProxyPass /apache-errors !
71
+ ErrorDocument 503 /apache-errors/503.html
72
ProxyPass / http://lucifer:3000/ retry=5 disablereuse=on
73
ProxyPassReverse / http://lucifer:3000/
74
@@ -125,6 +127,12 @@ in
127
max_input_time = 300
128
'';
129
130
+ servedDirs =
131
+ [ { urlPath = "/apache-errors";
132
+ dir = ./apache-errors;
133
+ }
134
+ ];
135
+
136
virtualHosts = [
137
138
{ # Catch-all site.