Redirect http to https

This commit is contained in:
Martijn Scheepers
2020-09-22 12:22:55 +02:00
parent ba90067be3
commit f8f573dbd0

View File

@@ -21,7 +21,7 @@ namespace Arrestanten_planbord
public Startup(IConfiguration configuration)
{
_config = configuration;
}
}
// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
@@ -103,6 +103,8 @@ namespace Arrestanten_planbord
//app.UseHsts();
}
app.UseHttpsRedirection();
app.UseHealthChecks("/health");
app.UseStaticFiles();