Trying to fix for production.
This commit is contained in:
parent
ccf1db2939
commit
6cca689ef7
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v2.1.1
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
* Fix bad proxy settings when not working on localhost
|
||||||
|
|
||||||
## v2.1.0
|
## v2.1.0
|
||||||
|
|
||||||
### Important Notes
|
### Important Notes
|
||||||
|
@ -115,7 +115,7 @@ function changeHttpBindRoute ({ peertubeHelpers }: RegisterServerOptions, port:
|
|||||||
proxyReqPathResolver: async (_req: Request): Promise<string> => {
|
proxyReqPathResolver: async (_req: Request): Promise<string> => {
|
||||||
return '/http-bind' // should not be able to access anything else
|
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.
|
parseReqBody: true // Note that setting this to false overrides reqAsBuffer and reqBodyEncoding below.
|
||||||
// FIXME: should we remove cookies?
|
// FIXME: should we remove cookies?
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user