-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappsettings.json
More file actions
53 lines (53 loc) · 1.57 KB
/
appsettings.json
File metadata and controls
53 lines (53 loc) · 1.57 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
{
// By default the application will automatically poll the /log and /devices endpoints and send alerts
"ChannelsDVRServerBaseUrl": "http://XXX.XXX.XXX.XXX:8089",
//"BonjourServiceName": "_channels_dvr._tcp", // requires docker HOST mode
//"Logs": {
// "MonitoringType": 0, // 0=API, 1=FILE. 0 is default.
// "ApiPollingIntervalMinutes": 2, // 2 is default; only used if Type=API
// "ApiEndpoint": "/log", // "/log" is default; only used if Type=API
// "FilePath": "/logs/channels-dvr.log", // only used if Type=FILE
// "AlertRules": [ // default is all [ERR], and [DVR] that startsWith "Error running job"
// {
// "LogType": "[ERR]"
// },
// {
// "LogType": "[DVR]",
// "StartsWith": "Error running job"
// }
// ]
//},
//"Devices": {
// "ApiPollingIntervalMinutes": 60, // 60 is default
// "ApiEndpoint": "/devices", // "/devices" is default
// "PropertiesToIgnore": [] // Defaults to [ "ChannelsDevice.DeviceAuth", "Channel.Favorite", "Channel.Hidden", "Channel.Enabled" ]
//},
"EmailSettings": {
"SmtpServer": "",
"SmtpPort": 587,
"FromAddress": "",
"ToAddress": "",
"UserId": "",
"Password": ""
},
"DatabasePath": "data/app.db",
"Serilog": {
"Using": [ "Serilog.Sinks.File" ],
"MinimumLevel": {
"Default": "Error"
},
"WriteTo": [
{
"Name": "File",
"Args": {
"path": "logs/app-.txt",
"rollingInterval": "Day",
"retainedFileCountLimit": 7
}
},
{
"Name": "Console"
}
]
}
}