From db4de9e99e84fc91dee1223736753257be21fd81 Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Sat, 6 Sep 2025 19:52:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D0=BD=D1=83=D0=BB=20openAPI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SfeduSchedule/Program.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SfeduSchedule/Program.cs b/SfeduSchedule/Program.cs index ccb4c2a..0c6d6f6 100644 --- a/SfeduSchedule/Program.cs +++ b/SfeduSchedule/Program.cs @@ -45,6 +45,9 @@ if (string.IsNullOrEmpty(preinstsalledJwtToken)) var app = builder.Build(); +app.UseForwardedHeaders(); +app.MapOpenApi(); + var logger = app.Services.GetRequiredService>(); if (string.IsNullOrEmpty(preinstsalledJwtToken)) @@ -63,7 +66,7 @@ if (string.IsNullOrEmpty(preinstsalledJwtToken)) if (expirationDate.AddHours(23) > DateTime.Now) { var token = lines[0]; - logger.LogInformation("Используем существующий токен: {Token}", token); + logger.LogInformation("Используем существующий токен"); configuration["TOKEN"] = token; } else