As ReactJS does not seem to support reading environment variables from Docker runtime variables, we'll pull it instead from buildtime. Also added copying of nginx config file in the Dockerfile Modified API Dockerfile to accept WebUri for CORS, also removed duplicate setting of CORS in Program.cs
47 lines
1.0 KiB
JSON
47 lines
1.0 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|