From 08963fe2f9632da774601e339a1f9928826ce278 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Thu, 5 Jun 2025 15:23:04 +0200 Subject: [PATCH] Web.deploy Config --- Host/GkvAbrechnungClient.aspx.cs | 4 +- Host/Host.csproj | 3 + Host/Web.Deploy.config | 327 +++++++++++++++++++++++++++++++ Host/Web.Secrets.config.template | 1 + Host/Web.config | 137 ++++++------- Service/BeWoServiceEnums.cs | 2 + 6 files changed, 406 insertions(+), 68 deletions(-) create mode 100644 Host/Web.Deploy.config diff --git a/Host/GkvAbrechnungClient.aspx.cs b/Host/GkvAbrechnungClient.aspx.cs index aa2e3e17b..581a65507 100644 --- a/Host/GkvAbrechnungClient.aspx.cs +++ b/Host/GkvAbrechnungClient.aspx.cs @@ -1,6 +1,7 @@ using BeWo.Data; using BeWo.Data.Access; using BeWo.Data.Entities; +using BeWo.Service.Core; using BeWo.Service.ServiceImplementations; using BS.Shared; using BS.Shared.AppSender; @@ -18,6 +19,7 @@ using System.Threading; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; +using WebSecretConfigSetting = BeWo.Service.WebSecretConfigSetting; namespace Host { @@ -32,7 +34,7 @@ namespace Host { private readonly string INVALID_INPUT = "Bad Request"; - private string GkvSecretKey { get; set; } = ConfigurationManager.AppSettings.Get("GkvSecretKey"); + private string GkvSecretKey { get; set; } = MergedConfig.GetSecretSetting(WebSecretConfigSetting.GkvSecretKey); public GkvClientRequestDC GkvClientRequest { get; set; } diff --git a/Host/Host.csproj b/Host/Host.csproj index 6b83ccb28..eb20929d1 100644 --- a/Host/Host.csproj +++ b/Host/Host.csproj @@ -461,6 +461,9 @@ + + Designer + diff --git a/Host/Web.Deploy.config b/Host/Web.Deploy.config new file mode 100644 index 000000000..0161beefd --- /dev/null +++ b/Host/Web.Deploy.config @@ -0,0 +1,327 @@ + + + +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Host/Web.Secrets.config.template b/Host/Web.Secrets.config.template index 72febfaeb..72c76773b 100644 --- a/Host/Web.Secrets.config.template +++ b/Host/Web.Secrets.config.template @@ -11,4 +11,5 @@ + \ No newline at end of file diff --git a/Host/Web.config b/Host/Web.config index e6b88fe14..e0002b116 100644 --- a/Host/Web.config +++ b/Host/Web.config @@ -9,6 +9,75 @@
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -309,7 +378,6 @@ - @@ -325,73 +393,8 @@ + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Service/BeWoServiceEnums.cs b/Service/BeWoServiceEnums.cs index 81de74770..19286cadc 100644 --- a/Service/BeWoServiceEnums.cs +++ b/Service/BeWoServiceEnums.cs @@ -11,6 +11,7 @@ namespace BeWo.Service OpenWebUIUrl, XRechnungApiUrl, StoredFilesFolderPath, + StoredTenantFilesFolderPath, HelloWorldPdfLocation } @@ -21,5 +22,6 @@ namespace BeWo.Service DownloadReportApiKey, OpenrouteServiceApiKey, GoogleDistanceMatrixApiKey, + GkvSecretKey, } }