-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathappsettings.json
47 lines (47 loc) · 1.67 KB
/
appsettings.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
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;port=5432;Database=yedajiang44;User ID=root;Password=123456;"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"JwtSettings": {
"Issuer": "yedajiang44", //token颁发者
"Audience": "yedajiang44", //token使用者
"SecretKey": "yedajiang44yedajiang44yedajiang44", //token密钥,必须大于16位
"Expires": 30 //有效期单位为分钟
},
"NLog": {
"autoReload": true,
"throwConfigExceptions": true,
"targets": {
"logfile": {
"type": "File",
"archiveAboveSize": 104857600,
"maxArchiveFiles": 10,
"maxArchiveDays": 7,
"archiveNumbering": "Sequence",
"archiveEvery": "Hour",
"archiveFileName": "${basedir}/logs/archives/log.${level}.{#####}.log",
"archiveDateFormat": "yyyyMMddHH",
"fileName": "logs/${level}.log",
"layout": "${date}|${level:uppercase=true}|${message} ${exception:format=shorttype,message:maxInnerExceptionLevel=5:innerExceptionSeparator= ----INNER---- :innerFormat=type,message,data}|${logger}|${all-event-properties}"
},
"logconsole": {
"type": "Console",
"layout": "${date}|${level:uppercase=true}|${message} ${exception:format=shorttype,message:maxInnerExceptionLevel=5:innerExceptionSeparator= ----INNER---- :innerFormat=type,message,data}|${logger}|${all-event-properties}"
}
},
"rules": [
{
"logger": "*",
"minLevel": "Information",
"writeTo": "logconsole"
}
]
}
}