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
8 changes: 6 additions & 2 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
:8503 {
handle_path /api/* {
:9000 {
handle {
root * /caddy/
try_files /index.json
header Content-Type "application/json"
file_server {
status 503
}
}

log
}
:4200 {
handle {
root * /caddy/
try_files /index.html
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Maintenance

This repository provides a Caddy configuration which can be built into a docker image.

Port 4200 serves a static html page from `/caddy/index.html`
Port 9000 serves a json response from `/caddy/index.json`

## Building Locally

`docker build .`

## Running Locally

`docker run -p 4200:4200 -p 9000:9000 sha256:<sha>`

## Kubernetes

You can mount some other file to these two paths to make it serve something else.
10 changes: 5 additions & 5 deletions index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"errors": [
{
"message": "Garner Platform is down for Scheduled Maintenance."
}
]
"errors": [
{
"message": "Garner Platform is down for Scheduled Maintenance."
}
]
}
Loading