diff --git a/backend/src/Web/Program.cs b/backend/src/Web/Program.cs index fa8a7f0..75e1141 100644 --- a/backend/src/Web/Program.cs +++ b/backend/src/Web/Program.cs @@ -1,3 +1,4 @@ +using Azure.Identity; using Hutopy.Web; using Hutopy.Web.Features.Contents; using Hutopy.Web.Features.Contents.Data; @@ -14,12 +15,11 @@ using NSwag.Generation.Processors.Security; var builder = WebApplication.CreateBuilder(args); -// TODO: REVIEW THE NECESSITY OF HAVING VAULT -// if (!builder.Environment.IsDevelopment()) -// { -// var keyVaultEndpoint = new Uri(Environment.GetEnvironmentVariable("VaultUri") ?? ""); -// builder.Configuration.AddAzureKeyVault(keyVaultEndpoint, new DefaultAzureCredential()); -// } +if (!builder.Environment.IsDevelopment()) +{ + var keyVaultEndpoint = new Uri(Environment.GetEnvironmentVariable("VaultUri") ?? ""); + builder.Configuration.AddAzureKeyVault(keyVaultEndpoint, new DefaultAzureCredential()); +} builder.Services.AddCors(options => { diff --git a/backend/src/Web/appsettings.Production.json b/backend/src/Web/appsettings.Production.json index ab0a4c9..416a981 100644 --- a/backend/src/Web/appsettings.Production.json +++ b/backend/src/Web/appsettings.Production.json @@ -3,8 +3,8 @@ "PostgresConnection": "Server=hutopypostgress.postgres.database.azure.com,5432;Database=hutopy;User Id=hutopy;Password=General2024!;Ssl Mode=Require;" }, "Stripe": { - "SecretKey": "sk_test_51OoveVDrRyqXtNdBaOs1DFFja0XhrQtJoAo83uSySMuqw4Wyt9NsuugrIHRqet9a50cr5GvolpTP8EZuTSttcgYx00gOUPNDoI", - "WebhookSecret": "whsec_cee07ef14cf784850cab63567048b5326fec7fd29c03f4659476524f8299aff1", + "SecretKey": "", + "WebhookSecret": "", "HutopyRate": 0.05 } } \ No newline at end of file diff --git a/frontend/.env.production b/frontend/.env.production index 9bcf9ae..3eabb32 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -1,5 +1,5 @@ VITE_API_URL=https://hutopy-backend-api.azurewebsites.net -VITE_STRIPE_API_KEY=pk_test_51OoveVDrRyqXtNdB2st1NgA8WQA9rhgGaf3q7bCpAOoQyyRS30HMCzGeHba7meVGCSPfb1BVWmOTmFOcr9MkKf5H00bLu5MqsS +VITE_STRIPE_API_KEY=51OoveVDrRyqXtNdBAxIo183PujtqFyU0xUMK9YNtIijcHeDlcLN6pqkZWHbgaBA0FHrwLMSoy3yVLN33NX8ExOxL00MSZwgJN7 VITE_GOOGLE_CLIENT_ID=213344094492-7c83lqoh7mnjgadpeqo2lcs1krhbsnnd.apps.googleusercontent.com AZURE_SUBSCRIPTION_ID=46feb20f-3ae1-495a-830b-a31f7b76483d AZURE_TENANT_ID=2f389c0d-131d-4de4-a7ac-03bab7e7a04f \ No newline at end of file