cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
12.45k stars 2.99k forks source link

Upload fails with custom Domain when deploying cvat within a docker container #6339

Closed yarhant closed 1 year ago

yarhant commented 1 year ago

My actions before raising this issue

Good afternoon,

We were trying to deploy a custom CVAT server on a node of a GPU cluster served at a custom subdomain name of my institution with an external traefik server which TLS forwards to the 8080 port of CVAT. Exporting the CVAT host works like a charm, except for any upload (project backup, annotations, etc.) that uses the tus-js-client. Hence it gives mixed content Cross-Origin Request (CORS) issues in the browser as the result of https -> http 307 Temporary redirect from the tus-js-client.

Debugging with the browser 1

Therefore, is this a X-forwarded-proto : https issue from any traefik such as described in tus-js-client#233 ?

Debugging with the browser 2

The issue is similar to the infrastructure issue #4531 at cvat.ai from last year.

We can't find the origin of the issue of running tus-js-client behind two/three reverse proxies with all different configurations. We thank you for your time reading and answering that issue.

Your Environment

azhavoro commented 1 year ago

@yarhant look at https://github.com/traefik/traefik/issues/5551

You need to set the correct X-forwarded-proto for the cvat backend.

azhavoro commented 1 year ago

I will close the question for now, please reopen it if you have any questions.

yarhant commented 1 year ago

@azhavoro Thank you very much. I just tested now and it works perfectly.