-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappsettings.json
More file actions
94 lines (94 loc) · 2.67 KB
/
appsettings.json
File metadata and controls
94 lines (94 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"MemoryReservation": {
"Enabled": false,
"ReservedMemoryBytes": 0,
"Comment": "DISABLED - System has insufficient memory. Only 1.9GB total RAM available."
},
"MemoryOptimizations": {
"Enabled": true,
"Comment": "Enable aggressive GC and memory optimizations for low-memory environments (t3.micro 1GB RAM)"
},
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://localhost:5000"
}
}
},
"Serilog": {
"Using": ["Serilog.Sinks.Console", "Serilog.Sinks.File", "Serilog.Sinks.Grafana.Loki"],
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.AspNetCore": "Warning",
"System": "Warning"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"restrictedToMinimumLevel": "Debug",
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj} {Properties:j}{NewLine}{Exception}"
}
},
{
"Name": "File",
"Args": {
"path": "/var/log/template-logs/giddh-template-.log",
"rollingInterval": "Day",
"retainedFileCountLimit": 7,
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {Level:u3}] {SourceContext} {Message:lj} {Properties:j}{NewLine}{Exception}"
}
},
{
"Name": "GrafanaLoki",
"Args": {
"uri": "http://loghub.msg91.com:3100",
"labels": [
{
"key": "app",
"value": "giddh-template-service"
},
{
"key": "environment",
"value": "Production"
},
{
"key": "company",
"value": "Walkover"
},
{
"key": "product",
"value": "Giddh"
},
{
"key": "service_name",
"value": "giddh-template"
}
],
"propertiesAsLabels": ["SourceContext", "RequestId"],
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {SourceContext} {Message:lj} {Properties:j}{NewLine}{Exception}",
"batchPostingLimit": 1000,
"queueLimit": 100000,
"period": "00:00:02",
"httpHeaderName": "X-Scope-OrgID",
"httpHeaderValue": "14"
}
}
],
"Enrich": ["FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId", "WithEnvironmentName"],
"Properties": {
"Application": "GiddhTemplateService",
"Version": "1.0.0"
}
}
}