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 =>

View File

@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
@@ -15,8 +15,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.5.0" />
<PackageReference Include="Azure.Identity" Version="1.18.0" />
<PackageReference Include="FastEndpoints" Version="5.35.0" />
<PackageReference Include="FastEndpoints.Swagger" Version="5.35.0" />
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" />

View File

@@ -1,11 +1,15 @@
{
"ConnectionStrings": {
"PostgresConnection": "Server=hutopypostgress.postgres.database.azure.com,5432;Database=hutopy;User Id=hutopy;Password=General2024!;Ssl Mode=Require;"
},
"Stripe": {
"SocializeRate": 0.05
},
"Website": {
"FrontendBaseUrl": "https://hutopy.com"
"FrontendBaseUrl": "https://socialize.mapachotes.com"
},
"LocalBlobStorage": {
"RootPath": "App_Data/blob-storage",
"RequestPath": "/api/storage"
},
"DevelopmentSeed": {
"Enabled": false
}
}