Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ buildbot.halide-lang.org {
redir / /master/ temporary

handle_path /master/* {
handle /sse/* {
reverse_proxy buildbot:8012 {
flush_interval -1
reverse_proxy buildbot:8012 {
@error status 5xx
handle_response @error {
header Content-Type text/html
root * /srv
rewrite * /maintenance.html
file_server
}
}

reverse_proxy buildbot:8012
}

header {
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ services:
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./master/maintenance.html:/srv/maintenance.html:ro
- caddy-data:/data
- caddy-config:/config
logging:
Expand Down
39 changes: 39 additions & 0 deletions master/maintenance.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Buildbot Maintenance</title>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="30">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
background: #f5f5f5;
color: #333;
}

.container {
text-align: center;
padding: 2rem;
}

h1 {
font-size: 1.5rem;
}

p {
color: #666;
}
</style>
</head>
<body>
<div class="container">
<h1>Buildbot is restarting</h1>
<p>The server is temporarily unavailable. This page will automatically refresh.</p>
</div>
</body>
</html>
Loading