-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappsettings.Staging.json
99 lines (99 loc) · 2.44 KB
/
appsettings.Staging.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"Urls": "http://0.0.0.0:3000",
"ConnectionStrings": {
"LocalDbContext": "Server=localhost;Database=postgres;User Id=postgres;Maximum Pool Size=20",
"LocalMongoDb": "mongodb://localhost:27017",
"LocalRedis": "localhost:6379"
},
"JWT": {
"ValidAudience": "http://localhost:3000",
"ValidIssuer": "http://localhost:3000",
"Secret": ""
},
"Authentication": {
"Google": {
"ClientId": "",
"ClientSecret": ""
}
},
"Logging": {
"LogLevel": {
"Default": "Warning",
"Microsoft.AspNetCore": "Warning",
"Hangfire": "Information"
}
},
"Vnpay": {
"TmnCode": "",
"HashSecret": "",
"BaseUrl": "https://sandbox.vnpayment.vn/paymentv2/vpcpay.html",
"Command": "pay",
"CurrCode": "VND",
"Version": "2.1.0",
"Locale": "vn"
},
"PaymentCallBack": {
"ReturnUrl": "http://localhost:3000/payment-callback"
},
"TimeZoneId": "SE Asia Standard Time",
"AllowedHosts": "*",
"IpRateLimiting": {
"EnableEndpointRateLimiting": false,
"StackBlockedRequests": false,
"RealIpHeader": "CF-Connecting-IP",
"ClientIdHeader": "X-ClientId",
"HttpStatusCode": 429,
"QuotaExceededMessage": "Too Many Requests",
// "IpWhitelist": [ "127.0.0.1", "::1/10", "192.168.0.0/24" ],
"EndpointWhitelist": [
"*:/api/admin/*"
],
// "ClientWhitelist": [ "dev-id-1", "dev-id-2" ],
"GeneralRules": [
{
"Endpoint": "*",
"Period": "10s",
"Limit": 5000
}
]
},
"IpRateLimitPolicies": {
// "IpRules": [
// {
// "Ip": "84.247.85.224",
// "Rules": [
// {
// "Endpoint": "*",
// "Period": "1s",
// "Limit": 10
// },
// {
// "Endpoint": "*",
// "Period": "15m",
// "Limit": 200
// }
// ]
// },
// {
// "Ip": "192.168.3.22/25",
// "Rules": [
// {
// "Endpoint": "*",
// "Period": "1s",
// "Limit": 5
// },
// {
// "Endpoint": "*",
// "Period": "15m",
// "Limit": 150
// },
// {
// "Endpoint": "*",
// "Period": "12h",
// "Limit": 500
// }
// ]
// }
// ]
}
}