Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 114d2df

Browse files
authored
fix: disambiguate environment variables (#38)
1 parent 93402d6 commit 114d2df

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.env.example

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ ASPNETCORE_ENVIRONMENT=Development
1515
FileDiscoveryTimerExpression=0 */5 * * * *
1616
MeshHandshakeTimerExpression=0 0 0 * * * # Midnight
1717
FileRetryTimerExpression=0 0 * * * *
18-
QueueUrl=http://127.0.0.1:10001
1918
FileExtractQueueName=file-extract
2019
FileTransformQueueName=file-transform
2120
StaleHours=12
22-
BlobContainerName=incoming-mesh-files
21+
MeshBlobContainerName=incoming-mesh-files
2322

2423

2524
# API Configuration

compose.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ services:
5353
MeshPassword: "${MeshPassword}"
5454
MeshSharedKey: "${MeshSharedKey}"
5555
AZURITE_CONNECTION_STRING: "${AZURITE_CONNECTION_STRING}"
56-
MeshStorageAccountUrl: "${AZURITE_CONNECTION_STRING}"
56+
MeshBlobStorageUrl: "${AZURITE_CONNECTION_STRING}"
57+
MeshQueueStorageUrl: "${AZURITE_CONNECTION_STRING}"
5758
ASPNETCORE_ENVIRONMENT: "${ASPNETCORE_ENVIRONMENT}"
5859
ASPNETCORE_URLS: "http://0.0.0.0:8080"
59-
BlobContainerName: "${BlobContainerName}"
60+
MeshBlobContainerName: "${MeshBlobContainerName}"
6061
ports:
6162
- "${MESH_INGEST_PORT}:8080"
6263
healthcheck:

src/ServiceLayer.Mesh/Messaging/ServiceCollectionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ internal static IServiceCollection AddMessagingServices(this IServiceCollection
2323
return new QueueServiceClient(connectionString, queueClientOptions);
2424
}
2525

26-
var meshStorageAccountUrl = EnvironmentVariables.GetRequired("MeshStorageAccountUrl");
27-
return new QueueServiceClient(new Uri(meshStorageAccountUrl), new ManagedIdentityCredential(), queueClientOptions);
26+
var meshQueueStorageUrl = EnvironmentVariables.GetRequired("MeshQueueStorageUrl");
27+
return new QueueServiceClient(new Uri(meshQueueStorageUrl), new ManagedIdentityCredential(), queueClientOptions);
2828
});
2929

3030
services.AddSingleton<IFileExtractQueueClient, FileExtractQueueClient>();

src/ServiceLayer.Mesh/Storage/ServiceCollectionExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ internal static IServiceCollection AddStorageServices(this IServiceCollection se
1111
{
1212
services.AddSingleton(_ =>
1313
{
14-
var containerName = EnvironmentVariables.GetRequired("BlobContainerName");
14+
var containerName = EnvironmentVariables.GetRequired("MeshBlobContainerName");
1515

1616
if (isLocalEnvironment)
1717
{
1818
return new BlobContainerClient(EnvironmentVariables.GetRequired("AzureWebJobsStorage"),containerName);
1919
}
2020

21-
var meshStorageAccountUrl = EnvironmentVariables.GetRequired("MeshStorageAccountUrl");
21+
var meshBlobStorageUrl = EnvironmentVariables.GetRequired("MeshBlobStorageUrl");
2222

23-
var serviceClient = new BlobServiceClient(new Uri(meshStorageAccountUrl), new ManagedIdentityCredential());
23+
var serviceClient = new BlobServiceClient(new Uri(meshBlobStorageUrl), new ManagedIdentityCredential());
2424
return serviceClient.GetBlobContainerClient(containerName);
2525
});
2626

0 commit comments

Comments
 (0)