8679bd1efd
Serilog.Sinks.Email v4 renamed all configuration parameters from their v2 names. The old names were silently ignored, so no error alert emails were ever sent. Parameter renames applied across all 6 appsettings.json and docker-compose: fromEmail → from toEmail → to mailServer → host networkCredential → credentials enableSsl: true → connectionSecurity: StartTls emailSubject → subject outputTemplate → body batchPostingLimit / period removed (v4 batching uses a separate overload) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
116 lines
2.8 KiB
JSON
116 lines
2.8 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.Hosting.Lifetime": "Information",
|
|
"Microsoft.Extensions.Hosting": "Information",
|
|
"System.Net.Http.HttpClient": "Warning",
|
|
"CvSearchJob": "Information",
|
|
"JobScheduler": "Information"
|
|
}
|
|
},
|
|
"LogEnvironmentOnStartup": true,
|
|
"Serilog": {
|
|
"Using": [
|
|
"Serilog.Sinks.Console",
|
|
"Serilog.Sinks.File",
|
|
"Serilog.Sinks.Email"
|
|
],
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"Microsoft.AspNetCore": "Warning",
|
|
"Microsoft.Extensions.Hosting": "Information",
|
|
"Microsoft.Hosting.Lifetime": "Information",
|
|
"System.Net.Http.HttpClient": "Warning",
|
|
"CvSearchJob": "Information",
|
|
"JobScheduler": "Information"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{
|
|
"Name": "Console",
|
|
"Args": {
|
|
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {SourceContext}: {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "logs/cv-search-job-.log",
|
|
"rollingInterval": "Day",
|
|
"retainedFileCountLimit": 30,
|
|
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {SourceContext}: {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "Email",
|
|
"Args": {
|
|
"restrictedToMinimumLevel": "Error",
|
|
"from": "",
|
|
"to": "",
|
|
"host": "",
|
|
"credentials": {
|
|
"userName": "",
|
|
"password": ""
|
|
},
|
|
"port": 587,
|
|
"connectionSecurity": "StartTls",
|
|
"subject": "[myAi] CV Search Job Error Alert",
|
|
"body": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {SourceContext}{NewLine}{Message:lj}{NewLine}{Exception}"
|
|
}
|
|
}
|
|
],
|
|
"Enrich": [
|
|
"FromLogContext",
|
|
"WithMachineName",
|
|
"WithEnvironmentName"
|
|
]
|
|
},
|
|
"Database": {
|
|
"Host": "localhost",
|
|
"Port": 1433,
|
|
"Name": "MyAiDb",
|
|
"User": "sa",
|
|
"Password": "",
|
|
"TrustServerCertificate": true
|
|
},
|
|
"CvMatcherApi": {
|
|
"BaseUrl": "http://cv-matcher-api:8080",
|
|
"InternalApiKey": ""
|
|
},
|
|
"EmailApi": {
|
|
"BaseUrl": "http://email-api:8080",
|
|
"InternalApiKey": ""
|
|
},
|
|
"FileStorage": {
|
|
"Path": "Files"
|
|
},
|
|
"Smtp": {
|
|
"Host": "",
|
|
"Port": 587,
|
|
"Username": "",
|
|
"Password": "",
|
|
"UseStartTls": false
|
|
},
|
|
"Contact": {
|
|
"ToEmail": ""
|
|
},
|
|
"JobSearch": {
|
|
"Enabled": true,
|
|
"JobSearchLinkBaseUrl": "https://myai.ro",
|
|
"TokenExpiryDays": 7,
|
|
"MinMatchScore": 15,
|
|
"MaxJobsToMatch": 15
|
|
},
|
|
"Jobs": {
|
|
"Tasks": [
|
|
{
|
|
"TaskType": "CvSearch",
|
|
"Enabled": true,
|
|
"Interval": "00:00:30"
|
|
}
|
|
]
|
|
}
|
|
}
|