chore: Initiliazed Version als 1.0.0.

- Funktionalität zum Ausführen von Swagger in der Produktion hinzugefügt.
This commit is contained in:
Developer 02 2025-01-17 13:49:40 +01:00
parent 7bab2657d4
commit d6315ce8a5
3 changed files with 7 additions and 2 deletions

View File

@ -4,6 +4,9 @@
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Version>1.0.0</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<FileVersion>1.0.0</FileVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -125,7 +125,8 @@ issuerSigningKeyInitiator = new Lazy<SecurityKey>(() =>
}); });
// Configure the HTTP request pipeline. // Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment()) var use_swagger = config.GetValue<bool>("UseSwagger");
if (app.Environment.IsDevelopment() || use_swagger)
{ {
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(); app.UseSwaggerUI();

View File

@ -5,6 +5,7 @@
"Microsoft.AspNetCore": "Warning" "Microsoft.AspNetCore": "Warning"
} }
}, },
"UseSwagger": true,
"AllowedHosts": "*", "AllowedHosts": "*",
"ConnectionStrings": { "ConnectionStrings": {
"Default": "Server=SDD-VMP04-SQL17\\DD_DEVELOP01;Database=DD_ECM;User Id=sa;Password=dd;Encrypt=false;TrustServerCertificate=True;" "Default": "Server=SDD-VMP04-SQL17\\DD_DEVELOP01;Database=DD_ECM;User Id=sa;Password=dd;Encrypt=false;TrustServerCertificate=True;"
@ -39,7 +40,7 @@
"Issuer": "auth.digitaldata.works", "Issuer": "auth.digitaldata.works",
"Audience": "api.digitaldata.works", "Audience": "api.digitaldata.works",
"IsEncrypted": true, "IsEncrypted": true,
"Lifetime": "48:00:00" "Lifetime": "5:00:00"
}, },
{ {
"Id": "61c07d26-baa8-4cbb-bb33-ac4ee1838c3a", "Id": "61c07d26-baa8-4cbb-bb33-ac4ee1838c3a",