Trying to fix for production.

This commit is contained in:
John Livingston 2021-05-06 13:59:45 +02:00
parent ccf1db2939
commit 6cca689ef7
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,11 @@
# Changelog
## v2.1.1
### Fixes
* Fix bad proxy settings when not working on localhost
## v2.1.0
### Important Notes

View File

@ -115,7 +115,7 @@ function changeHttpBindRoute ({ peertubeHelpers }: RegisterServerOptions, port:
proxyReqPathResolver: async (_req: Request): Promise<string> => {
return '/http-bind' // should not be able to access anything else
},
// preserveHostHdr: false,
preserveHostHdr: true,
parseReqBody: true // Note that setting this to false overrides reqAsBuffer and reqBodyEncoding below.
// FIXME: should we remove cookies?
}