Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ ASPNETCORE_ENVIRONMENT=Development
FileDiscoveryTimerExpression=0 */5 * * * *
MeshHandshakeTimerExpression=0 0 0 * * * # Midnight
FileRetryTimerExpression=0 0 * * * *
QueueUrl=http://127.0.0.1:10001
FileExtractQueueName=file-extract
FileTransformQueueName=file-transform
StaleHours=12
BlobContainerName=incoming-mesh-files
MeshBlobContainerName=incoming-mesh-files


# API Configuration
Expand Down
5 changes: 3 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ services:
MeshPassword: "${MeshPassword}"
MeshSharedKey: "${MeshSharedKey}"
AZURITE_CONNECTION_STRING: "${AZURITE_CONNECTION_STRING}"
MeshStorageAccountUrl: "${AZURITE_CONNECTION_STRING}"
MeshBlobStorageUrl: "${AZURITE_CONNECTION_STRING}"
MeshQueueStorageUrl: "${AZURITE_CONNECTION_STRING}"
ASPNETCORE_ENVIRONMENT: "${ASPNETCORE_ENVIRONMENT}"
ASPNETCORE_URLS: "http://0.0.0.0:8080"
BlobContainerName: "${BlobContainerName}"
MeshBlobContainerName: "${MeshBlobContainerName}"
ports:
- "${MESH_INGEST_PORT}:8080"
healthcheck:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ internal static IServiceCollection AddMessagingServices(this IServiceCollection
return new QueueServiceClient(connectionString, queueClientOptions);
}

var meshStorageAccountUrl = EnvironmentVariables.GetRequired("MeshStorageAccountUrl");
return new QueueServiceClient(new Uri(meshStorageAccountUrl), new ManagedIdentityCredential(), queueClientOptions);
var meshQueueStorageUrl = EnvironmentVariables.GetRequired("MeshQueueStorageUrl");
return new QueueServiceClient(new Uri(meshQueueStorageUrl), new ManagedIdentityCredential(), queueClientOptions);
});

services.AddSingleton<IFileExtractQueueClient, FileExtractQueueClient>();
Expand Down
6 changes: 3 additions & 3 deletions src/ServiceLayer.Mesh/Storage/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ internal static IServiceCollection AddStorageServices(this IServiceCollection se
{
services.AddSingleton(_ =>
{
var containerName = EnvironmentVariables.GetRequired("BlobContainerName");
var containerName = EnvironmentVariables.GetRequired("MeshBlobContainerName");

if (isLocalEnvironment)
{
return new BlobContainerClient(EnvironmentVariables.GetRequired("AzureWebJobsStorage"),containerName);
}

var meshStorageAccountUrl = EnvironmentVariables.GetRequired("MeshStorageAccountUrl");
var meshBlobStorageUrl = EnvironmentVariables.GetRequired("MeshBlobStorageUrl");

var serviceClient = new BlobServiceClient(new Uri(meshStorageAccountUrl), new ManagedIdentityCredential());
var serviceClient = new BlobServiceClient(new Uri(meshBlobStorageUrl), new ManagedIdentityCredential());
return serviceClient.GetBlobContainerClient(containerName);
});

Expand Down
Loading