From 79fb77d603198cea02f1ea919224861ae9dc8fa7 Mon Sep 17 00:00:00 2001 From: david <58231312+davseby@users.noreply.github.com> Date: Wed, 26 Aug 2026 19:44:48 +0300 Subject: [PATCH] remove rustfs console redirect in caddy --- README.md | 2 +- docker/Caddyfile | 9 ++++----- server/CLAUDE.md | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1617500f..9851a2b0 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ revoked in the app's settings. The dev stack exposes: - `8080` — front door (the app; APIs under `/auth-realtime` and `/core`) -- `8081` — RustFS console +- `8081` — RustFS console (at `/rustfs/console/`) - `8082` — changedetection.io - `8083` — Grafana - `8084` — Mailpit (dev email inbox) diff --git a/docker/Caddyfile b/docker/Caddyfile index b47deac6..227fba53 100644 --- a/docker/Caddyfile +++ b/docker/Caddyfile @@ -74,11 +74,10 @@ :8081 { import common - # the console is served under its own prefix and references its assets - # by absolute path, so the bare root is redirected at it rather than - # rewritten away — stripping the prefix would break every asset URL. - redir / /rustfs/console/ - + # the console lives at /rustfs/console/, and the S3, STS and admin APIs + # it calls share this origin at "/" — so the root is left alone rather + # than redirected at the console, which would swallow ListBuckets and + # the console's own sign-in. reverse_proxy rustfs:9001 } diff --git a/server/CLAUDE.md b/server/CLAUDE.md index fa55aa78..e23ec9e8 100644 --- a/server/CLAUDE.md +++ b/server/CLAUDE.md @@ -60,7 +60,7 @@ Go dependencies are fetched into the module cache at build time (`make deps` run `docker/Caddyfile` is the entrypoint for all client traffic: - `:8080` — front door. `/core/*` is path-stripped and reverse-proxied to `core:8080`; `/auth-realtime/*` is path-stripped and reverse-proxied to `auth-realtime:8081` (Better Auth, Hocuspocus, the merge proxy — the service itself still serves `/api/...` and `/hocuspocus`); everything else goes to the web SSR container (`web:3000`). -- `:8081` — RustFS console +- `:8081` — RustFS console (served at `/rustfs/console/`; the root is the S3 API) - `:8082` — changedetection.io - `:8083` — Grafana (direct, not via Caddy)