psitransfer
psitransfer copied to clipboard
Docker or manual deployment behind haproxy?
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?
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.