Update JWT config for sandbox

This commit is contained in:
2025-11-09 23:47:18 +07:00
parent b1cd01bf9b
commit 01e6f1834d

View File

@@ -39,5 +39,68 @@
"LogSlowQueriesOnly": false "LogSlowQueriesOnly": false
}, },
"RunOrleansGrains": true, "RunOrleansGrains": true,
"AllowedHosts": "*" "AllowedHosts": "*",
"Cors": {
"AllowedOrigins": [
"https://kaigen-web-kaigen-stage.up.railway.app/",
"https://dev-managing-api.apps.managing.live/health",
"https://web-ui.kai.managing.live"
]
},
"Authentication": {
"Schemes": {
"Bearer": {
"ValidIssuer": "https://dev-managing-api.apps.managing.live/health",
"ValidAudiences": [
"https://kaigen-web-kaigen-stage.up.railway.app/",
"https://web-ui.kai.managing.live"
]
}
}
},
"Jwt": {
"ValidateIssuer": true,
"ValidateAudience": true,
"ClockSkewSeconds": 0
},
"IpRateLimiting": {
"EnableEndpointRateLimiting": true,
"StackBlockedRequests": false,
"RealIpHeader": "X-Real-IP",
"ClientIdHeader": "X-ClientId",
"HttpStatusCode": 429,
"IpWhitelist": [],
"EndpointWhitelist": [],
"ClientWhitelist": [],
"GeneralRules": [
{
"Endpoint": "*",
"Period": "1m",
"Limit": 100
},
{
"Endpoint": "POST:/user/create-token",
"Period": "1m",
"Limit": 5
},
{
"Endpoint": "POST:*",
"Period": "1m",
"Limit": 30
}
]
},
"IpRateLimitPolicies": {
"IpRules": [],
"ClientRules": [],
"EndpointRules": []
},
"Kestrel": {
"Limits": {
"MaxRequestBodySize": 10485760,
"MaxRequestHeadersTotalSize": 32768,
"MaxConcurrentConnections": 100,
"MaxConcurrentUpgradedConnections": 100
}
}
} }