diff --git a/cmd/gateway/main.go b/cmd/gateway/main.go index 28089aa..3b7a324 100644 --- a/cmd/gateway/main.go +++ b/cmd/gateway/main.go @@ -210,6 +210,7 @@ func main() { "http://localhost:3000", "http://127.0.0.1:3000", "https://techtorque.vercel.app", + "https://techtorque.randitha.net", }, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"}, AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"}, diff --git a/config.yaml b/config.yaml index 4c841d8..f183b0d 100644 --- a/config.yaml +++ b/config.yaml @@ -115,6 +115,7 @@ services: - name: "ai" path_prefix: "/api/v1/ai/" - target_url: "http://localhost:8089" # Assuming a future port for the FastAPI service - strip_prefix: "/api/v1/ai" - auth_required: true \ No newline at end of file + target_url: "http://localhost:8091" # Agent Bot service (Python FastAPI) + strip_prefix: "" # Don't strip - Agent Bot expects the full path + auth_required: true + env_var: "AGENT_BOT_SERVICE_URL" \ No newline at end of file