From 2641a6a228c42868ff0b1c88cce9631fc3b11f80 Mon Sep 17 00:00:00 2001 From: Erman Date: Wed, 9 Sep 2026 04:07:44 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=20https=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82,=20=D0=B5=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=B4=D0=B5=D0=BB=D0=B0=D0=B5=D1=82=20nginx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DEMO/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DEMO/Program.cs b/DEMO/Program.cs index 76619dc..7cd7930 100644 --- a/DEMO/Program.cs +++ b/DEMO/Program.cs @@ -29,7 +29,8 @@ if (app.Environment.IsDevelopment()) app.MapOpenApi(); } -app.UseHttpsRedirection(); // всегда https +// на сервере https делает nginx, поэтому тут редирект не нужен +// app.UseHttpsRedirection(); app.UseDefaultFiles(); // чтоб открывался index.html сам app.UseStaticFiles(); // чтоб отдавать файлы из wwwroot