From bb16aab7cf39cf5f8f77d596fe9a22f513ad3e86 Mon Sep 17 00:00:00 2001 From: Spencer Perkins <95900100+SpecialThing44@users.noreply.github.com> Date: Fri, 25 Apr 2025 12:17:10 -0400 Subject: [PATCH 1/3] Replace tabs with spaces --- index.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.json b/index.json index 44f7045..e917e53 100644 --- a/index.json +++ b/index.json @@ -1,7 +1,7 @@ { - "errors": [ - { - "message": "Garner Platform is down for Scheduled Maintenance." - } - ] + "errors": [ + { + "message": "Garner Platform is down for Scheduled Maintenance." + } + ] } From 8ee55f7518d450956e665c2c6c46bf4ee2e1ca0f Mon Sep 17 00:00:00 2001 From: Spencer Perkins <95900100+SpecialThing44@users.noreply.github.com> Date: Fri, 25 Apr 2025 12:17:37 -0400 Subject: [PATCH 2/3] Use separate ports for frontend and backend --- Caddyfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Caddyfile b/Caddyfile index 7bcb1dc..62caa42 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,5 +1,5 @@ -:8503 { - handle_path /api/* { +:9000 { + handle { root * /caddy/ try_files /index.json header Content-Type "application/json" @@ -7,6 +7,10 @@ status 503 } } + + log +} +:4200 { handle { root * /caddy/ try_files /index.html From 529b8dbd97e60d758c3082279c910eaebc41773a Mon Sep 17 00:00:00 2001 From: Spencer Perkins <95900100+SpecialThing44@users.noreply.github.com> Date: Fri, 25 Apr 2025 12:21:46 -0400 Subject: [PATCH 3/3] Create README --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..033b841 --- /dev/null +++ b/README.md @@ -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:` + +## Kubernetes + +You can mount some other file to these two paths to make it serve something else.