reverse proxy: use X-Forwarded-Host

This commit is contained in:
kaso17 2018-08-15 09:00:54 +02:00
parent 05520f23d1
commit ad143ce94f
1 changed files with 3 additions and 1 deletions

View File

@ -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()