summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-06-18 00:44:14 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-06-18 00:44:14 +0000
commit35e5cb916391e98181169d0228fc23514362988f (patch)
tree18e378d20e8e16c076a8eb62566a1b890666e740
parent1b1e6d6165531b4489f665bb0fd46e2d996de19f (diff)
feat: add scout service mount to gateway
Wires scout listing feed (SCOUT_URL env var) into the service gateway loop. Set SCOUT_URL=http://127.0.0.1:8081 to expose it at /scout/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--cmd/dashboard/main.go7
-rw-r--r--internal/config/config.go2
2 files changed, 9 insertions, 0 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go
index 596932a..7eb5761 100644
--- a/cmd/dashboard/main.go
+++ b/cmd/dashboard/main.go
@@ -186,6 +186,13 @@ func main() {
prefix: "/playground",
})
}
+ if cfg.ScoutURL != "" {
+ mounts = append(mounts, serviceMount{
+ name: "scout",
+ upstream: cfg.ScoutURL,
+ prefix: "/scout",
+ })
+ }
// Rate limiter for auth endpoints
authRateLimiter := appmiddleware.NewRateLimiter(config.AuthRateLimitRequests, config.AuthRateLimitWindow)
diff --git a/internal/config/config.go b/internal/config/config.go
index fe7bca5..1738e54 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -45,6 +45,7 @@ type Config struct {
// Service gateway — additional upstream services proxied through doot's auth layer
PlaygroundURL string // URL of playground demo service (optional)
+ ScoutURL string // URL of scout listing feed service (optional)
}
// Load reads configuration from environment variables
@@ -87,6 +88,7 @@ func Load() (*Config, error) {
// Service gateway
PlaygroundURL: os.Getenv("PLAYGROUND_URL"),
+ ScoutURL: os.Getenv("SCOUT_URL"),
}
// Validate required fields