diff --git a/src/Altinn.Profile.Integrations/Extensions/ConfigurationExtensions.cs b/src/Altinn.Profile.Integrations/Extensions/ConfigurationExtensions.cs index df8b1ab..f80b7c8 100644 --- a/src/Altinn.Profile.Integrations/Extensions/ConfigurationExtensions.cs +++ b/src/Altinn.Profile.Integrations/Extensions/ConfigurationExtensions.cs @@ -7,9 +7,9 @@ namespace Altinn.Profile.Integrations.Extensions; /// public static class ConfigurationExtensions { - private const string ProfileDbAdminUserNameKey = "PostgreSqlSettings--ProfileDbAdminUserName"; - private const string ProfileDbAdminPasswordKey = "PostgreSqlSettings--ProfileDbAdminPassword"; - private const string ProfileDbConnectionStringKey = "PostgreSqlSettings--ProfileDbConnectionString"; + private const string ProfileDbAdminUserNameKey = "PostgreSqlSettings:ProfileDbAdminUserName"; + private const string ProfileDbAdminPasswordKey = "PostgreSqlSettings:ProfileDbAdminPassword"; + private const string ProfileDbConnectionStringKey = "PostgreSqlSettings:ProfileDbConnectionString"; /// /// Retrieves the database connection string from the configuration. diff --git a/src/Altinn.Profile/appsettings.json b/src/Altinn.Profile/appsettings.json index d2b678e..40c9f24 100644 --- a/src/Altinn.Profile/appsettings.json +++ b/src/Altinn.Profile/appsettings.json @@ -8,5 +8,10 @@ }, "CoreSettings": { "ProfileCacheLifetimeSeconds": 600 + }, + "PostgreSqlSettings": { + "ProfileDbAdminUserName": "from keyvault", + "ProfileDbAdminPassword": "from keyvault", + "ProfileDbConnectionString": "Host=localhost;Port=5432;Database=profiledb;Username={0};Password={1};" } }