Implement Docker support with Dockerfile, docker-compose, and nginx configuration; add HTTPS redirection option and update appsettings
This commit is contained in:
parent
17a561094a
commit
7a919491d2
7 changed files with 215 additions and 2 deletions
|
|
@ -89,7 +89,11 @@ else
|
|||
app.UseHsts();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
var useHttpsRedirection = app.Configuration.GetValue("UseHttpsRedirection", !app.Environment.IsDevelopment());
|
||||
if (useHttpsRedirection)
|
||||
{
|
||||
app.UseHttpsRedirection();
|
||||
}
|
||||
|
||||
app.UseRequestLocalization(localizationOptions);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue