From 68bd7e4f4a3e4707904170e4d08e1262e5be502b Mon Sep 17 00:00:00 2001 From: warnason <276599704+warnason@users.noreply.github.com> Date: Mon, 20 Apr 2026 12:02:41 +0200 Subject: [PATCH] Configure Caddy reverse proxy for bim.stifting.at - Route /api/*, /docs, /health to FastAPI backend - Route all other requests to Vue.js frontend - Redirect demo.stifting.at to bim.stifting.at --- caddy/Caddyfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 caddy/Caddyfile diff --git a/caddy/Caddyfile b/caddy/Caddyfile new file mode 100644 index 0000000..16c416d --- /dev/null +++ b/caddy/Caddyfile @@ -0,0 +1,28 @@ +git.stifting.at { + reverse_proxy forgejo:3000 + encode gzip zstd +} + +bim.stifting.at { + handle /api/* { + reverse_proxy bim-backend:8000 + } + handle /docs { + reverse_proxy bim-backend:8000 + } + handle /openapi.json { + reverse_proxy bim-backend:8000 + } + handle /health { + reverse_proxy bim-backend:8000 + } + handle { + reverse_proxy bim-frontend:5173 + } + encode gzip zstd +} + +demo.stifting.at { + redir https://bim.stifting.at{uri} permanent +} +