Skip to content

Instantly share code, notes, and snippets.

@srdelarosa
Created August 1, 2022 23:07
Show Gist options
  • Save srdelarosa/98aec146fb0272f36ef733e48b8e3deb to your computer and use it in GitHub Desktop.
Save srdelarosa/98aec146fb0272f36ef733e48b8e3deb to your computer and use it in GitHub Desktop.
{
"ConnectionStrings": {
"Qhatu": "Data Source=desarrollo-sqlserver.database.windows.net;Initial Catalog=qhatu;Integrated Security=False;User ID=qhatu;Password=P4$$w0rd2022.;Connect Timeout=60;Encrypt=False;TrustServerCertificate=False"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"JwtBearer": {
"SecretKey": "$$$.@N3wH0r1z0n$2022@.$$$",
"Issuer": "https://localhost:3027/",
"Audience": "https://localhost:3027/",
"Lifetime": "4"
},
"CryptoSection": {
"SecretKey": "N3wH0r1z0ns@2022"
},
"IpRateLimiting": {
"EnableEndpointRateLimiting": false,
"StackBlockedRequests": false,
"RealIpHeader": "X-Real-IP",
"ClientIdHeader": "X-ClientId",
"HttpStatusCode": 429,
"GeneralRules": [
{
"Endpoint": "GET:/api/product/getAll",
"Period": "10s",
"Limit": 5
}
],
"QuotaExceededResponse": {
"Content": "{{ \"statusCode\": \"429\", \"message\": \"Whoa! Calm down, cowboy!\", \"details\": \"Quota exceeded. Maximum allowed: {0} per {1}. Please try again in {2} second(s).\" }}",
"ContentType": "application/json",
"StatusCode": 429
}
},
"CorsSection": {
"AllowOrigin": "http://localhost:3000"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment