mirror of https://github.com/Jackett/Jackett
reverse proxy: use X-Forwarded-Host
This commit is contained in:
parent
05520f23d1
commit
ad143ce94f
|
@ -117,8 +117,10 @@ namespace Jackett.Server
|
||||||
|
|
||||||
app.UseForwardedHeaders(new ForwardedHeadersOptions
|
app.UseForwardedHeaders(new ForwardedHeadersOptions
|
||||||
{
|
{
|
||||||
|
// When adjusting these pareamters make sure it's well tested with various environments
|
||||||
|
// See https://github.com/Jackett/Jackett/issues/3517
|
||||||
ForwardLimit = 10,
|
ForwardLimit = 10,
|
||||||
ForwardedHeaders = ForwardedHeaders.XForwardedProto
|
ForwardedHeaders = ForwardedHeaders.XForwardedProto | ForwardedHeaders.XForwardedHost
|
||||||
});
|
});
|
||||||
|
|
||||||
var rewriteOptions = new RewriteOptions()
|
var rewriteOptions = new RewriteOptions()
|
||||||
|
|
Loading…
Reference in New Issue