Commit 24d3daa
[WIP] Cosmos Support (#30)
* ADD: Cosmos Support for Metadata Retrieve
* ADD: Cosmos Support for Metadata Retrieve .env
* ADD: Cosmos Support Bicep
* ADD: Cosmos Support For Key-Based
* Fix: Cosmos folder structure
* Fix: Cosmos folder structure
* Fix: Cosmos folder structure
* Fix typo in Cosmos DB environment variable name
- Changed AZURE_COMOS_DB_ID to AZURE_COSMOS_DB_ID
- Ensures proper environment variable mapping between infrastructure and backend
* Fix Bicep template validation errors
- Remove duplicate Cosmos DB parameter definitions and modules
- Remove @secure() decorators from outputs (not supported)
- Add proper Cosmos DB outputs to main template
- Template now validates successfully with only expected warnings
* Fix Cosmos DB deployment issues for regional capacity constraints
- Enable free tier to reduce resource demands
- Simplify consistency policy from BoundedStaleness to Session
- Reduce capacity limit from 4000 to 1000 RU/s
- Change backup redundancy from Geo to Local
- Make Cosmos DB deployment conditional with deployCosmosDb parameter
- Update all references to be conditional to avoid deployment errors
- Template now resilient to regional capacity limitations
* Revert conditional Cosmos DB and simplify configuration
- Cosmos DB is required dependency, not optional
- Restore proper dependency chain for container apps
- Simplify Cosmos DB properties to minimal required configuration
- Enable free tier with serverless capability for cost optimization
- Remove complex backup and security settings that may cause conflicts
* Refactor CosmosDBService for improved readability and configuration
* Refactor gallery and image endpoints to enhance metadata handling
* Enhance image and video metadata handling with nested analysis structure
* Refactor gallery endpoints to streamline metadata handling and remove legacy blob storage implementation. Enhance metadata extraction by excluding null values and standardizing analysis structure from CosmosDB. Improve folder management by integrating folder placeholders and cleaning up obsolete entries.
* Update configuration for managed identity and streamline Cosmos DB integration
* Add virtual network and private endpoint support for Cosmos DB integration
* Add minimum replica configuration for container app to ensure availability
* Enhance Bicep templates to support existing resource reuse for virtual networks and private endpoints. Added parameters for existing VNet and subnet IDs, allowing for conditional deployment. Updated Cosmos DB module to generate unique account names to prevent collisions across environments.
* Enhance Cosmos DB service integration and CORS configuration. Updated video generation logging for better debugging, added validation for CORS origins in settings, and improved CORS setup in Azure Blob Storage to ensure proper handling of origins. Refactored Bicep templates to use stable API versions for container registry and managed environments.
* Update Bicep templates to refine API hostname configuration and enhance ingress settings. Changed API hostname for backend to use internal domain and adjusted ingress external access condition for frontend services.
* fix: remove private endpoint configs
* chore: remove LICENSE file as part of project restructuring
---------
Co-authored-by: Moustafa Mahmoud <[email protected]>1 parent 52126fb commit 24d3daa
File tree
30 files changed
+3607
-1606
lines changed- backend
- api/endpoints
- core
- models
- frontend
- app/new-image
- components
- services
- utils
- infra
- modules
30 files changed
+3607
-1606
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
32 | 41 | | |
33 | 42 | | |
34 | 43 | | |
| |||
This file was deleted.
0 commit comments