Set config to env variables

This commit is contained in:
2025-12-14 01:15:40 +07:00
parent 2157d1f2c9
commit e0e4dda808
11 changed files with 43 additions and 204 deletions

View File

@@ -209,7 +209,7 @@ var jwtSecret = builder.Configuration["Jwt:Secret"];
if (string.IsNullOrWhiteSpace(jwtSecret))
{
throw new InvalidOperationException(
"JWT secret is not configured. Please set 'Jwt:Secret' in appsettings.json or environment variables.");
"JWT secret is not configured. Please set 'Jwt:Secret' environment variable.");
}
if (jwtSecret.Length < 32)