docker testing + setup hosting dx app via aspnet

This commit is contained in:
2025-05-18 00:06:23 -04:00
parent 34c050384b
commit 24ddb19013
10 changed files with 150 additions and 3275 deletions

View File

@@ -109,15 +109,16 @@ if (!app.Environment.IsDevelopment())
app.UseGrpcWeb(new GrpcWebOptions { DefaultEnabled = true });
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseCors();
app.UseAuthentication();
app.UseAuthorization();
app.MapControllers();
app.MapObserability();
app.MapGrpcService<AobaRpcService>()
@@ -125,8 +126,6 @@ app.MapGrpcService<AobaRpcService>()
app.MapGrpcService<AobaAuthService>()
.AllowAnonymous()
.RequireCors("RPC");
app.MapFallbackToFile("index.html");
app.Run();