OSDN Git Service

Add a custom 502 page
authorJacob Vosmaer <contact@jacobvosmaer.nl>
Tue, 28 Jan 2014 09:19:22 +0000 (10:19 +0100)
committerJacob Vosmaer <contact@jacobvosmaer.nl>
Tue, 28 Jan 2014 09:19:22 +0000 (10:19 +0100)
lib/support/nginx/gitlab
public/502.html [new file with mode: 0644]

index 0860d2a..882f038 100644 (file)
@@ -53,5 +53,7 @@ server {
 
     proxy_pass http://gitlab;
   }
+
+  error_page 502 /502.html;
 }
 
diff --git a/public/502.html b/public/502.html
new file mode 100644 (file)
index 0000000..d22816c
--- /dev/null
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <title>GitLab is not responding (502)</title>
+  <link href="/static.css" media="screen" rel="stylesheet" type="text/css" />
+</head>
+<body>
+  <h1>502</h1>
+  <h3>GitLab is not responding.</h3>
+  <hr/>
+  <p>Please contact your administrator if this problem persists.</p>
+</body>
+</html>