This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: technologyleads-identity-api | |
type: Opaque | |
stringData: | |
JwtSecret: M%......R*r | |
DbConnectionString: Server = host.docker.internal, 1433\\MSSQLServer01; Database=EcosystemIdentityDb; Trusted_Connection=False; MultipleActiveResultSets=True;User Id=sa; Password=<password>; | |
GoogleCaptchaVerificationSecret: 6LcN......kxqB | |
GoogleAuthClientId: 61......k56.apps.googleusercontent.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IHostBuilder CreateHostBuilder(string[] args) => | |
Host.CreateDefaultBuilder(args) | |
.UseSerilog() | |
.ConfigureWebHostDefaults(webBuilder => | |
{ | |
webBuilder.UseStartup<Startup>(); | |
}).ConfigureLogging(logging => | |
{ | |
logging.ClearProviders(); | |
logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": "Healthy", | |
"totalDuration": "00:00:00.0087070", | |
"entries": { | |
"Check API Health": { | |
"data": {}, | |
"duration": "00:00:00.0008568", | |
"status": "Healthy", | |
"tags": [] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddHealthChecks() | |
.AddCheck<ApiHealthCheck>("Check API Health"); | |
} | |
public void Configure( | |
IApplicationBuilder app, | |
IWebHostEnvironment env, | |
IApiVersionDescriptionProvider provider, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ApiHealthCheck : IHealthCheck | |
{ | |
public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) | |
{ | |
var result = HealthCheckResult.Healthy(); | |
return Task.FromResult(result); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
replicaCount: 1 | |
image: | |
repository: technologyleads/ecosystem-identity-api | |
pullPolicy: Always | |
# Overrides the image tag whose default is the chart appVersion. | |
tag: "" | |
env: | |
- name: "ASPNETCORE_ENVIRONMENT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
replicaCount: 1 | |
image: | |
repository: technologyleads/ecosystem-web-app | |
pullPolicy: Always | |
# Overrides the image tag whose default is the chart appVersion. | |
tag: "" | |
env: | |
- name: "ASPNETCORE_ENVIRONMENT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: {{ include "ecosystem-identity-api.fullname" . }} | |
labels: | |
{{- include "ecosystem-identity-api.labels" . | nindent 4 }} | |
spec: | |
{{- if not .Values.autoscaling.enabled }} | |
replicas: {{ .Values.replicaCount }} | |
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
webapp: | |
image: technologyleads/ecosystem-web-app:v1.0.0 | |
build: | |
context: ../Ecosystem.Web | |
args: | |
- PAT=limrbr6tk5......tinggp7vq | |
ports: | |
- 8500:443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**/.classpath | |
**/.dockerignore | |
**/.git | |
**/.gitignore | |
**/.project | |
**/.settings | |
**/.toolstarget | |
**/.vs | |
**/.vscode | |
**/*.*proj.user |