chore(ci): update configuration
Some checks failed
deploy-socialize / test (push) Failing after 3s
deploy-socialize / deploy (push) Has been skipped
deploy-socialize / image (push) Has been skipped

This commit is contained in:
2026-05-05 22:23:19 -04:00
parent 6083797eb1
commit b7b282a71a
11 changed files with 12 additions and 361 deletions

View File

@@ -1,4 +1,3 @@
using Azure.Identity;
using FastEndpoints;
using FastEndpoints.Swagger;
using Microsoft.AspNetCore.HttpOverrides;
@@ -25,11 +24,10 @@ using Socialize.Api.Modules.Workspaces;
var builder = WebApplication.CreateBuilder(args);
if (!builder.Environment.IsDevelopment())
string? vaultUri = Environment.GetEnvironmentVariable("VaultUri");
if (!string.IsNullOrWhiteSpace(vaultUri))
{
var vaultUri = Environment.GetEnvironmentVariable("VaultUri") ?? throw new InvalidOperationException("Missing VaultUri configuration setting");
builder.Configuration.AddAzureKeyVault(new Uri(vaultUri), new DefaultAzureCredential());
throw new InvalidOperationException("VaultUri configuration is not supported by this deployment. Move secrets to environment variables.");
}
builder.Services.AddCors(options =>