-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathProgram.cs
More file actions
20 lines (15 loc) · 824 Bytes
/
Program.cs
File metadata and controls
20 lines (15 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Aspire.Hosting;
using Aspire.Hosting.ApplicationModel;
using OrchardCore.AspireHost;
var builder = DistributedApplication.CreateBuilder(args);
var clamAv = builder.AddClamAV("antivirus")
.WithDataVolume("clamavdb");
builder.AddProject<Projects.OrchardCore_Cms_Web>("OrchardCoreCms")
.WithExternalHttpEndpoints()
.WithReference(clamAv)
.WithEnvironment("OrchardCore__Antivirus_ClamAV__Host", clamAv.Resource.PrimaryEndpoint.Property(EndpointProperty.Host))
.WithEnvironment("OrchardCore__Antivirus_ClamAV__Port", clamAv.Resource.PrimaryEndpoint.Property(EndpointProperty.Port))
.WithEnvironment("OrchardCore__Antivirus_ClamAV__ConnectTimeoutSeconds", "5")
.WithEnvironment("OrchardCore__Antivirus_ClamAV__TransferTimeoutSeconds", "30");
var app = builder.Build();
await app.RunAsync();