Explicitly use port 80

main
ilitirit 1 year ago
parent 7be619adca
commit e09851b8fb

@ -39,7 +39,7 @@ builder.Services.AddScoped<IExpedienceRepository, ExpedienceRepository>();
builder.Services.AddSingleton<IDistributedLock, DistributedLock>(); builder.Services.AddSingleton<IDistributedLock, DistributedLock>();
builder.Services.AddSingleton<IDecryptor, Decryptor>(); builder.Services.AddSingleton<IDecryptor, Decryptor>();
builder.WebHost.UseUrls("http://*:80");
var app = builder.Build(); var app = builder.Build();
var scope = app.Services.CreateScope(); var scope = app.Services.CreateScope();
@ -54,6 +54,7 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI(); app.UseSwaggerUI();
} }
app.UseAuthorization(); app.UseAuthorization();
app.MapControllers(); app.MapControllers();

Loading…
Cancel
Save