-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappsettings.json
58 lines (56 loc) · 2.16 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
{
"ConnectionStrings": {
"PostgreSQLConnectionString": "User ID=anyuser;Password=anypassword;Host=localhost;Port=5432;Database=AnyDB;Pooling=true;",
"SQLDBConnectionString": "Data Source=server_ip;Initial Catalog=API;User Id=sa;Password=any_password;Application Name=WebAPI;"
},
"AllowedHosts": "*",
"ApiResourceBaseUrls": {
"AuthServer": "http://production_url"
},
"Self": {
"Id": "api.core",
"Secret": "0a2e472b-f263-43fd-8372-3b13f5acf222",
"TimeoutDays": 1
},
"HttpClientPolicies": {
"RetryCount": 3,
"RetryDelayInMs": 1500,
"RetryTimeoutInSeconds": 5,
"BreakDurationInSeconds": 30,
"MaxAttemptBeforeBreak": 3,
"HandlerTimeoutInMinutes": 5
},
"IpRateLimiting": {
"EnableEndpointRateLimiting": false,
"StackBlockedRequests": false,
"RealIpHeader": "X-Real-IP",
"ClientIdHeader": "X-ClientId",
"HttpStatusCode": 429,
"GeneralRules": [
{
"Endpoint": "*:/api/*",
"Period": "1s",
"Limit": 20
}
]
},
"HealthChecksUI": {
"HealthChecks": [
{
"Name": "Eren Ticaret health Check",
"Uri": "http://API.local/selfcheck"
}
],
"Webhooks": [
{
"Name": "Teams",
"Uri": "https://outlook.office.com/webhook/...",
"Payload": "{\r\n \"@context\": \"http://schema.org/extensions\",\r\n \"@type\": \"MessageCard\",\r\n \"themeColor\": \"0072C6\",\r\n \"title\": \"[[LIVENESS]] has failed!\",\r\n \"text\": \"[[FAILURE]] Click **Learn More** to go to BeatPulseUI Portal\",\r\n \"potentialAction\": [\r\n {\r\n \"@type\": \"OpenUri\",\r\n \"name\": \"Lear More\",\r\n \"targets\": [\r\n { \"os\": \"default\", \"uri\": \"http://API.local/selfcheck-ui\" }\r\n ]\r\n }\r\n ]\r\n}",
"RestoredPayload": "{\"text\":\"The HealthCheck [[LIVENESS]] is recovered. All is up and running\",\"channel\":\"#general\",\"link_names\": 1,\"username\":\"monkey-bot\",\"icon_emoji\":\":monkey_face\" }"
}
],
"EvaluationTimeInSeconds": 10,
"MinimumSecondsBetweenFailureNotifications": 60,
"HealthCheckDatabaseConnectionString": "Data Source=healthchecks.db"
}
}