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(images): enable production SDK uploads (#7816)

r33drichards3862649a95c6
diff --git a/libs/fleet/nginx.conf b/libs/fleet/nginx.conf
index c5d01ef368..0cebe1c312 100644
--- a/libs/fleet/nginx.conf
+++ b/libs/fleet/nginx.conf
@@ -183,7 +183,7 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
- location ~ ^/api/(keys|user-keys|github-trust-policies|gateway|k8s|swagger|batch|label|namespaces|config|analytics|chat|billing|state|usage|admin|signed-service-urls)(/|$) {
+ location ~ ^/api/(keys|user-keys|github-trust-policies|gateway|k8s|swagger|batch|label|namespaces|config|analytics|chat|billing|state|usage|admin|signed-service-urls|image-uploads)(/|$) {
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 7696ece0a2..67e9fbbfab 100644
--- a/libs/fleet/tests/nginx-config.test.mjs
+++ b/libs/fleet/tests/nginx-config.test.mjs
@@ -44,6 +44,11 @@ test("backend API nginx route includes GitHub trust policy endpoints", async ()
/\bsigned-service-urls\b/,
"expected /api/signed-service-urls to proxy to cyclops-cs-backend",
)
+ assert.match(
+ backendRoute[1],
+ /\bimage-uploads\b/,
+ "expected /api/image-uploads to proxy to cyclops-cs-backend",
+ )
})
test("oauth2-proxy accepts Fleets GitHub WIF bearer tokens", async () => {