summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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