-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic base-path #479
Comments
This is not possible with standalone tusd. I am not sure how Cloudflare does it since I am not sure whether they are using tusd or some other tus server. However, in theory you can use a reverse proxy before tusd to rewrite the dynamic URL into a "static" URL pointing to tusd. In addition, the proxy could store the account ID for the URL in a header, which can then by consumed in the hooks for tusd. At least, I think this should work. |
I have a similar issue. I put put tusd behind ambassador, rewrite the url there, and extract the dynamic parts to put in headers for hooks. But the location header which is returned from POST /upload is then wrong. Would be solved by supporting #332? |
I don't think #332 would help. Since you are already rewriting the URL using a proxy, the easiest approach is likely to also use the proxy to rewrite the Location header. |
Closing this issue due to inactivity. Feel free to leave a comment if you want to continue the discussion :) |
Question
How to sent dynamic basepath?
I've seen on this link https://developers.cloudflare.com/stream/uploading-videos/upload-video-file#nodejs-example
They've added
/{ACCOUNT ID}/stream
on-base-path
, How it is possible?... do you have any option for that?Setup details
Please provide following details, if applicable to your situation:
The text was updated successfully, but these errors were encountered: