Created Woodpecker CI/CD deployment
- Created Dockerfile for packing up API and Web projects as Docker image
This commit is contained in:
46
API/YABA.API/appsettings.json
Normal file
46
API/YABA.API/appsettings.json
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft": "Warning",
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
},
|
||||
"Serilog": {
|
||||
"MinimumLevel": "Information",
|
||||
"Using": [
|
||||
"Serilog.Sinks.Grafana.Loki"
|
||||
],
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "File",
|
||||
"Args": {
|
||||
"path": "Logs/log.json",
|
||||
"rollingInterval": "Day",
|
||||
"formatter": "Serilog.Formatting.Json.JsonFormatter, Serilog"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "GrafanaLoki",
|
||||
"Args": {
|
||||
"uri": "https://loki.iwanaga.moe",
|
||||
"labels": [
|
||||
{
|
||||
"key": "job",
|
||||
"value": "YABA.API"
|
||||
},
|
||||
{
|
||||
"key": "environment",
|
||||
"value": "localhost"
|
||||
}
|
||||
],
|
||||
"propertiesAsLabels": [ "job", "environment" ]
|
||||
}
|
||||
}
|
||||
],
|
||||
"Enrich": ["FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId"]
|
||||
},
|
||||
"WebClient": {
|
||||
"Url": "http://localhost:3000"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user