Убран https редирект, его делает nginx
This commit is contained in:
parent
3e66983042
commit
2641a6a228
|
|
@ -29,7 +29,8 @@ if (app.Environment.IsDevelopment())
|
||||||
app.MapOpenApi();
|
app.MapOpenApi();
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseHttpsRedirection(); // всегда https
|
// на сервере https делает nginx, поэтому тут редирект не нужен
|
||||||
|
// app.UseHttpsRedirection();
|
||||||
|
|
||||||
app.UseDefaultFiles(); // чтоб открывался index.html сам
|
app.UseDefaultFiles(); // чтоб открывался index.html сам
|
||||||
app.UseStaticFiles(); // чтоб отдавать файлы из wwwroot
|
app.UseStaticFiles(); // чтоб отдавать файлы из wwwroot
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user