mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-06-23 12:51:14 +00:00
275ee1b554
- Introduced new TileProvision settings in appsettings.json, including MaxTilesPerBatch and ProgressEmitIntervalSeconds. - Configured TileProvisionConfig in Program.cs to bind the new settings. - Added gRPC service for RouteTileDelivery in Program.cs to handle tile delivery requests. - Updated SatelliteProvider.Api.csproj to include Grpc.AspNetCore package and added protobuf file for tile provision. - Enhanced AuthenticationServiceCollectionExtensions to handle JWT token extraction from the Authorization header. - Registered additional services in RouteManagementServiceCollectionExtensions for tile processing. These changes enhance the API's capability to manage tile provisioning and delivery efficiently.
72 lines
1.8 KiB
JSON
72 lines
1.8 KiB
JSON
{
|
|
"Serilog": {
|
|
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ],
|
|
"MinimumLevel": {
|
|
"Default": "Warning",
|
|
"Override": {
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{ "Name": "Console" },
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "./logs/satellite-provider-.log",
|
|
"rollingInterval": "Day",
|
|
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"AllowedHosts": "*",
|
|
"ConnectionStrings": {
|
|
"DefaultConnection": "Host=localhost;Database=satelliteprovider;Username=postgres;Password=postgres"
|
|
},
|
|
"Jwt": {
|
|
"Secret": "",
|
|
"Issuer": "",
|
|
"Audience": ""
|
|
},
|
|
"UavQuality": {
|
|
"MinBytes": 5120,
|
|
"MaxBytes": 5242880,
|
|
"MaxAgeDays": 7,
|
|
"CapturedAtFutureSkewSeconds": 30,
|
|
"MinLuminanceVariance": 10.0,
|
|
"MaxBatchSize": 100,
|
|
"LuminanceSampleSize": 32
|
|
},
|
|
"MapConfig": {
|
|
"Service": "GoogleMaps",
|
|
"ApiKey": "",
|
|
"TileSizePixels": 256,
|
|
"AllowedZoomLevels": [ 15, 16, 17, 18, 19 ],
|
|
"RetryBaseDelaySeconds": 1,
|
|
"RetryMaxDelaySeconds": 30
|
|
},
|
|
"StorageConfig": {
|
|
"TilesDirectory": "./tiles",
|
|
"ReadyDirectory": "./ready"
|
|
},
|
|
"ProcessingConfig": {
|
|
"MaxConcurrentDownloads": 4,
|
|
"MaxConcurrentRegions": 20,
|
|
"DefaultZoomLevel": 20,
|
|
"QueueCapacity": 1000,
|
|
"DelayBetweenRequestsMs": 50,
|
|
"SessionTokenReuseCount": 100,
|
|
"RegionProcessingTimeoutSeconds": 300,
|
|
"RouteProcessingPollIntervalSeconds": 5,
|
|
"MaxRoutePointSpacingMeters": 200.0,
|
|
"LatLonTolerance": 0.0001
|
|
},
|
|
"TileProvision": {
|
|
"MaxTilesPerBatch": 200,
|
|
"ProgressEmitIntervalSeconds": 2
|
|
},
|
|
"CorsConfig": {
|
|
"AllowedOrigins": []
|
|
}
|
|
}
|