psitransfer icon indicating copy to clipboard operation
psitransfer copied to clipboard

Docker or manual deployment behind haproxy?

Open DigitalFriends opened this issue 3 years ago • 1 comments

Hi, trying to get psitransfer to work behind haproxy, everything seems to work except for upload (returns error 500)

tus: unexpected response while creating upload, originated from request (method: POST, url: /files, response code: 500, response text: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Error</title> </head> <body> <pre>Internal Server Error</pre> </body> </html> , request id: n/a)

Is there and docker envs i have to use? If not, should i do a manual deployment?

DigitalFriends avatar Jan 25 '22 09:01 DigitalFriends

Probably haproxy doesnt forward all headers like Tus-Resumeable, Upload-Metadata etc?

Compare the header the browser sends with the one which psitransfer receives with tcpdump or dump the heders by inserting console.log(req.headers) in https://github.com/psi-4ward/psitransfer/blob/master/lib/endpoints.js#L296.

psi-4ward avatar May 07 '22 12:05 psi-4ward