fix: appSettings
This commit is contained in:
parent
3395cc7478
commit
988a0115f3
70
appsettings.Development.json
Normal file
70
appsettings.Development.json
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
{
|
||||||
|
"App": {
|
||||||
|
"Name": "QR Rapido",
|
||||||
|
"BaseUrl": "https://localhost:52428",
|
||||||
|
"TaglinePT": "Gere QR codes em segundos!",
|
||||||
|
"TaglineES": "¡Genera códigos QR en segundos!",
|
||||||
|
"TaglineEN": "Generate QR codes in seconds!",
|
||||||
|
"Version": "1.0.0"
|
||||||
|
},
|
||||||
|
"ApplicationName": "QRRapido-Dev",
|
||||||
|
"Environment": "Dev",
|
||||||
|
"Serilog": {
|
||||||
|
"SeqUrl": "http://192.168.0.75:5341",
|
||||||
|
"ApiKey": "",
|
||||||
|
"MinimumLevel": {
|
||||||
|
"Default": "Error",
|
||||||
|
"Override": {
|
||||||
|
"Microsoft": "Error",
|
||||||
|
"Microsoft.AspNetCore": "Error",
|
||||||
|
"Microsoft.Hosting.Lifetime": "Error",
|
||||||
|
"System": "Error",
|
||||||
|
"QRRapidoApp": "Error"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ResourceMonitoring": {
|
||||||
|
"Enabled": true,
|
||||||
|
"IntervalSeconds": 60,
|
||||||
|
"CpuThresholdPercent": 90,
|
||||||
|
"MemoryThresholdMB": 1024,
|
||||||
|
"ConsecutiveAlertsBeforeError": 6
|
||||||
|
},
|
||||||
|
"MongoDbMonitoring": {
|
||||||
|
"Enabled": true,
|
||||||
|
"IntervalMinutes": 10,
|
||||||
|
"DatabaseSizeWarningMB": 2048,
|
||||||
|
"DatabaseSizeErrorMB": 10240,
|
||||||
|
"GrowthRateWarningMBPerHour": 200,
|
||||||
|
"IncludeCollectionStats": true
|
||||||
|
},
|
||||||
|
"HealthChecks": {
|
||||||
|
"MongoDB": {
|
||||||
|
"TimeoutSeconds": 10,
|
||||||
|
"IncludeDatabaseSize": true,
|
||||||
|
"TestQuery": true
|
||||||
|
},
|
||||||
|
"Seq": {
|
||||||
|
"TimeoutSeconds": 5,
|
||||||
|
"TestLogMessage": "QRRapido-Dev health check test"
|
||||||
|
},
|
||||||
|
"Resources": {
|
||||||
|
"CpuThresholdPercent": 95,
|
||||||
|
"MemoryThresholdMB": 1200,
|
||||||
|
"GcPressureThreshold": 20
|
||||||
|
},
|
||||||
|
"ExternalServices": {
|
||||||
|
"TimeoutSeconds": 15,
|
||||||
|
"TestStripeConnection": false,
|
||||||
|
"TestGoogleAuth": false,
|
||||||
|
"TestMicrosoftAuth": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Debug",
|
||||||
|
"Microsoft.AspNetCore": "Information",
|
||||||
|
"QRRapidoApp": "Debug"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
67
appsettings.Production.json
Normal file
67
appsettings.Production.json
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
{
|
||||||
|
"ApplicationName": "QRRapido-Prod",
|
||||||
|
"Environment": "Prod",
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"MongoDB": "mongodb://admin:c4rn31r0@129.146.116.218:27017,141.148.162.114:27017/seu_banco?replicaSet=rs0&authSource=admin"
|
||||||
|
},
|
||||||
|
"Serilog": {
|
||||||
|
"SeqUrl": "http://localhost:5341",
|
||||||
|
"ApiKey": "",
|
||||||
|
"MinimumLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Override": {
|
||||||
|
"Microsoft": "Warning",
|
||||||
|
"Microsoft.AspNetCore": "Warning",
|
||||||
|
"Microsoft.Hosting.Lifetime": "Information",
|
||||||
|
"System": "Warning",
|
||||||
|
"QRRapidoApp": "Information"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ResourceMonitoring": {
|
||||||
|
"Enabled": true,
|
||||||
|
"IntervalSeconds": 30,
|
||||||
|
"CpuThresholdPercent": 75,
|
||||||
|
"MemoryThresholdMB": 512,
|
||||||
|
"ConsecutiveAlertsBeforeError": 3,
|
||||||
|
"GcCollectionThreshold": 8
|
||||||
|
},
|
||||||
|
"MongoDbMonitoring": {
|
||||||
|
"Enabled": true,
|
||||||
|
"IntervalMinutes": 5,
|
||||||
|
"DatabaseSizeWarningMB": 1024,
|
||||||
|
"DatabaseSizeErrorMB": 5120,
|
||||||
|
"GrowthRateWarningMBPerHour": 100,
|
||||||
|
"IncludeCollectionStats": true,
|
||||||
|
"CollectionsToMonitor": [ "Users", "QRCodeHistory", "AdFreeSessions" ]
|
||||||
|
},
|
||||||
|
"HealthChecks": {
|
||||||
|
"MongoDB": {
|
||||||
|
"TimeoutSeconds": 5,
|
||||||
|
"IncludeDatabaseSize": true,
|
||||||
|
"TestQuery": true
|
||||||
|
},
|
||||||
|
"Seq": {
|
||||||
|
"TimeoutSeconds": 3,
|
||||||
|
"TestLogMessage": "QRRapido-Prod health check test"
|
||||||
|
},
|
||||||
|
"Resources": {
|
||||||
|
"CpuThresholdPercent": 80,
|
||||||
|
"MemoryThresholdMB": 600,
|
||||||
|
"GcPressureThreshold": 12
|
||||||
|
},
|
||||||
|
"ExternalServices": {
|
||||||
|
"TimeoutSeconds": 8,
|
||||||
|
"TestStripeConnection": true,
|
||||||
|
"TestGoogleAuth": true,
|
||||||
|
"TestMicrosoftAuth": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning",
|
||||||
|
"QRRapidoApp": "Information"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user