mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-30 20:33:44 +01:00
add healthchecks to docker
This commit is contained in:
parent
7f49ca8627
commit
bdd8830c8e
9 changed files with 40 additions and 13 deletions
|
|
@ -60,6 +60,8 @@ public class Startup
|
|||
|
||||
// configure mare specific services
|
||||
ConfigureMareServices(services, mareConfig);
|
||||
|
||||
services.AddHealthChecks();
|
||||
}
|
||||
|
||||
private static void ConfigureMareServices(IServiceCollection services, IConfigurationSection mareConfig)
|
||||
|
|
@ -303,6 +305,8 @@ public class Startup
|
|||
endpoints.MapGrpcService<GrpcIdentityService>().AllowAnonymous();
|
||||
endpoints.MapGrpcService<GrpcConfigurationService<ServerConfiguration>>().AllowAnonymous();
|
||||
}
|
||||
|
||||
endpoints.MapHealthChecks("/health").WithMetadata(new AllowAnonymousAttribute());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue