-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathappsettings.json
63 lines (63 loc) · 1.83 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Information",
"Microsoft.AspNetCore.HttpLogging.HttpLoggingMiddleware": "Information"
}
},
"AllowedHosts": "*",
"Serilog": {
"Using": [ "Serilog.Sinks.File", "Serilog.Sinks.Console", "Serilog.Sinks.Seq", "Serilog.Sinks.Elasticsearch" ],
"MinimumLevel": {
"Default": "Debug"
},
"WriteTo": [
{
"Name": "File",
"Args": {
"path": "../Logs/BlogCoreApi-.log",
"rollingInterval": "Day",
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {Level:u3}][{RequestId}][{Username}:{UserId}] {Message:lj}{NewLine}{Exception}"
}
},
{
"Name": "Console",
"Args": {
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console",
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {Level:u3}][{RequestId}][{Username}:{UserId}] {Message:lj}{NewLine}{Exception}"
}
},
{
"Name": "Seq",
"Args": {
"serverUrl": "http://localhost:5341"
}
},
{
"Name": "Elasticsearch",
"Args": {
"nodeUris": "http://localhost:5000"
}
}
]
},
"DatabaseProvider": "MsSQL",
"ConnectionStrings": {
"Default": "Server=.;Database=BlogCoreDB;Integrated Security=True;TrustServerCertificate=True"
},
"TokenConfiguration": {
"Issuer": "http://localhost:5000",
"Secret": "veryVerySuperSuperSuperSuperSecretKey",
"AccessTokenExpirationInMinutes": 60,
"RefreshTokenExpirationInMinutes": 720
},
"EmailConfiguration": {
"From": "[email protected]",
"NameOfFrom": "BlogCoreDemo",
"SmtpServer": "smtp.gmail.com",
"Port": 465,
"Username": "[email protected]",
"Password": ""
}
}