-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappsettings.json
More file actions
47 lines (47 loc) · 1.11 KB
/
Copy pathappsettings.json
File metadata and controls
47 lines (47 loc) · 1.11 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
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"DefaultConnection": "Server=YASINRAMAZANGOK;Database=CoreXCrudDB;Trusted_Connection=True;TrustServerCertificate=True;MultipleActiveResultSets=true"
},
"AppSettings": {
"ProjectName": "",
"Version": "1.0.0",
"Environment": "Development"
},
"JwtSettings": {
"Secret": "ThisIsAVeryStrongSecretKeyWithMoreThan256Bits_ChangeThisNow!",
"Issuer": "CoreXCrudAPI",
"Audience": "CoreXCrudClient",
"ExpiryMinutes": 60
},
"IpRateLimiting": {
"EnableEndpointRateLimiting": true,
"StackBlockedRequests": false,
"RealIpHeader": "X-Real-IP",
"ClientIdHeader": "X-ClientId",
"HttpStatusCode": 429,
"GeneralRules": [
{
"Endpoint": "*",
"Period": "1m",
"Limit": 10
},
{
"Endpoint": "GET:/api/Products",
"Period": "1m",
"Limit": 5
},
{
"Endpoint": "POST:/api/Products",
"Period": "1m",
"Limit": 3
}
]
}
}