fix(gateway): standalone local route config with full Node/Transport/Routing/OpenApi sections
Mount router-gateway-local.json as appsettings.json (not appsettings.local.json) so it fully replaces the baked-in config instead of merging. Add Node, Transports, Routing, and OpenApi sections to make the file self-contained. Test validates all required top-level sections are present. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,48 @@
|
||||
{
|
||||
"Gateway": {
|
||||
"Node": {
|
||||
"Region": "local",
|
||||
"NodeId": "gw-local-01",
|
||||
"Environment": "dev",
|
||||
"NeighborRegions": [
|
||||
|
||||
]
|
||||
},
|
||||
"Transports": {
|
||||
"Tcp": {
|
||||
"Enabled": false,
|
||||
"BindAddress": "0.0.0.0",
|
||||
"Port": 9100,
|
||||
"ReceiveBufferSize": 65536,
|
||||
"SendBufferSize": 65536,
|
||||
"MaxFrameSize": 16777216
|
||||
},
|
||||
"Tls": {
|
||||
"Enabled": false,
|
||||
"BindAddress": "0.0.0.0",
|
||||
"Port": 9443,
|
||||
"ReceiveBufferSize": 65536,
|
||||
"SendBufferSize": 65536,
|
||||
"MaxFrameSize": 16777216,
|
||||
"CertificatePath": "",
|
||||
"CertificateKeyPath": "",
|
||||
"CertificatePassword": "",
|
||||
"RequireClientCertificate": false,
|
||||
"AllowSelfSigned": false
|
||||
}
|
||||
},
|
||||
"Routing": {
|
||||
"DefaultTimeout": "60s",
|
||||
"GlobalTimeoutCap": "120s",
|
||||
"MaxRequestBodySize": "100MB",
|
||||
"StreamingEnabled": true,
|
||||
"PreferLocalRegion": true,
|
||||
"AllowDegradedInstances": true,
|
||||
"StrictVersionMatching": true,
|
||||
"NeighborRegions": [
|
||||
|
||||
]
|
||||
},
|
||||
"Auth": {
|
||||
"DpopEnabled": false,
|
||||
"AllowAnonymous": true,
|
||||
@@ -23,6 +66,15 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"OpenApi": {
|
||||
"Enabled": true,
|
||||
"CacheTtlSeconds": 300,
|
||||
"Title": "StellaOps Gateway API",
|
||||
"Description": "Unified API aggregating all connected microservices.",
|
||||
"Version": "1.0.0",
|
||||
"ServerUrl": "/",
|
||||
"TokenUrl": "/auth/token"
|
||||
},
|
||||
"Health": {
|
||||
"StaleThreshold": "30s",
|
||||
"DegradedThreshold": "20s",
|
||||
|
||||
Reference in New Issue
Block a user