Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(cyclops): proxy state query API (#6645)

r33drichards22b9aaf99531
diff --git a/libs/fleet/nginx.conf b/libs/fleet/nginx.conf
index 7e9c5726bc..f19167db18 100644
--- a/libs/fleet/nginx.conf
+++ b/libs/fleet/nginx.conf
@@ -148,7 +148,7 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
- location ~ ^/api/(keys|user-keys|github-trust-policies|gateway|k8s|orch|swagger|batch|label|namespaces|config|billing)(/|$) {
+ location ~ ^/api/(keys|user-keys|github-trust-policies|gateway|k8s|orch|swagger|batch|label|namespaces|config|billing|state)(/|$) {
proxy_pass ${CYCLOPS_CS_BACKEND};
proxy_http_version 1.1;
proxy_set_header Host $host;
diff --git a/libs/fleet/tests/nginx-config.test.mjs b/libs/fleet/tests/nginx-config.test.mjs
index 27c5706dc0..952b53cb1d 100644
--- a/libs/fleet/tests/nginx-config.test.mjs
+++ b/libs/fleet/tests/nginx-config.test.mjs
@@ -20,4 +20,9 @@ test("backend API nginx route includes GitHub trust policy endpoints", async ()
/\bgithub-trust-policies\b/,
"expected /api/github-trust-policies to proxy to cyclops-cs-backend",
)
+ assert.match(
+ backendRoute[1],
+ /\bstate\b/,
+ "expected /api/state/query to proxy to cyclops-cs-backend",
+ )
})