Remove debug lines
This commit is contained in:
parent
fa882a1f4a
commit
060b4ee1a1
|
@ -39,11 +39,8 @@ builder.Services.AddIdentityCore<User>(opts =>
|
|||
.AddUserManager<UserManager<User>>()
|
||||
.AddEntityFrameworkStores<PTMXContext>();
|
||||
|
||||
Console.WriteLine("Testing one two");
|
||||
|
||||
var proxyConfig = builder.Configuration.GetSection("Proxies");
|
||||
if (proxyConfig?.GetSection("TrustedProxies")?.Get<IList<string>>() is {} trustedProxies) {
|
||||
Console.WriteLine("Got trusted proxies!");
|
||||
builder.Services.Configure<ForwardedHeadersOptions>(opts =>
|
||||
{
|
||||
opts.KnownProxies.AddRange(trustedProxies.Select(IPAddress.Parse));
|
||||
|
|
Loading…
Reference in a new issue