-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappsettings.template.json
80 lines (76 loc) · 2.29 KB
/
appsettings.template.json
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
{
// Telmplate configuration for application.
"Configuration": {
// How to apply for an API key: https://api.setlist.fm/docs/1.0/index.html
"SetlistFmApiKey": "",
// Create telegram bot and authorize to get unique token: https://core.telegram.org/bots/api#authorizing-your-bot
"TelegramToken": "",
// Read "Getting started" https://www.last.fm/ru/api to create an API account
"LastFmApiKey": "",
"LastFmApiSecret": "",
// How to create and register a new application to generate valid credentials: https://developer.spotify.com/documentation/web-api/quick-start/
"SpotifyClientID": "",
"SpotifyClientSecret": "",
// To get access token: https://github.com/MarshalX/yandex-music-api/discussions/513#discussioncomment-2729781
"YandexToken": ""
},
// To search lyrics of a song: https://github.com/skuill/LyricsScraperNET
"LyricScraperClient": {
"GeniusOptions": {
"SearchPriority": 3,
"Enabled": true,
"ApiKey": ""
},
"AZLyricsOptions": {
"SearchPriority": 4,
"Enabled": true
},
"MusixmatchOptions": {
"SearchPriority": 0,
"Enabled": true,
"ApiKey": ""
},
"SongLyricsOptions": {
"SearchPriority": 2,
"Enabled": true
},
"LyricFindOptions": {
"SearchPriority": 1,
"Enabled": true
}
},
"Serilog": {
"MinimumLevel": "Debug",
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] [{SourceContext}] {Message}{NewLine}{Exception}"
}
},
{
"Name": "File",
"Args": {
"path": "./logs/log-.txt",
"rollingInterval": "Day",
"rollOnFileSizeLimit": true,
"fileSizeLimitBytes": 1000000, // 1 MB
"retainedFileCountLimit": 20,
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] [{SourceContext}] {Message}{NewLine}{Exception}"
}
},
{
"Name": "Debug",
"Args": {
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] [{SourceContext}] {Message}{NewLine}{Exception}"
}
}
],
"Enrich": [
"FromLogContext",
"WithMachineName",
"WithProcessId",
"WithThreadId"
]
}
}