Update production configuration for frontend and backend
This commit is contained in:
@@ -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 =>
|
||||
{
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user