tus-node-server icon indicating copy to clipboard operation
tus-node-server copied to clipboard

False uploadUrl

Open irvanherz opened this issue 2 years ago • 4 comments

I'm using tus-js-client. https://development.interskill.id/backendv2/ is my API base base URL. I don't really know what happened. But I got false upload URL from tus-node server. Screenshot from 2021-11-08 13-21-57

irvanherz avatar Nov 08 '21 06:11 irvanherz

Do you use any reverse proxy or have express app mounted to backendv2 subpath?

mitjap avatar Nov 08 '21 17:11 mitjap

Do you use any reverse proxy or have express app mounted to backendv2 subpath?

Yes, I do

irvanherz avatar Nov 08 '21 22:11 irvanherz

By the way, I'm trying to implement optional baseUrl options for the TusServer class. Can I submit PR for this? https://github.com/irvanherz/tus-node-server/commit/40c37bd68af17daeffd7d60fe995881babdf1bfd

irvanherz avatar Nov 09 '21 06:11 irvanherz

I am aware of this issue with reverse proxy. I'm thinking about implementing a URL generator parser that user could reimplement to fit their use case.

mitjap avatar Nov 09 '21 11:11 mitjap