|
|
|
@ -30,6 +30,10 @@ namespace NikolaNet
@@ -30,6 +30,10 @@ namespace NikolaNet
|
|
|
|
|
options.ForwardedHeaders = |
|
|
|
|
ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto; |
|
|
|
|
}); |
|
|
|
|
services.Configure<ForwardedHeadersOptions>(options => |
|
|
|
|
{ |
|
|
|
|
options.KnownProxies.Add(IPAddress.Parse("192.168.1.102")); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
|
|
|
|