Skip to content

Commit

Permalink
添加健康检查
Browse files Browse the repository at this point in the history
  • Loading branch information
zlzforever committed Jul 27, 2024
1 parent dfb73a9 commit 34d8387
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SecurityTokenService/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void ConfigureServices(IServiceCollection services)
}

services.AddRouting(options => options.LowercaseUrls = true);

services.AddHealthChecks();
services.AddScoped<SeedData>();

services.AddCors(option => option
Expand Down Expand Up @@ -132,6 +132,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app.UsePathBase(Configuration["BasePath"]);
}

app.UseHealthChecks("/healthz");
app.UseCookiePolicy(new CookiePolicyOptions { MinimumSameSitePolicy = SameSiteMode.Lax });
app.UseFileServer();
app.UseRouting();
Expand Down

0 comments on commit 34d8387

Please sign in to comment.