Publishoz

This commit is contained in:
2025-04-10 08:46:41 +02:00
parent 02cef1bf23
commit 621d61e08e
6 changed files with 46 additions and 2 deletions
+5
View File
@@ -83,6 +83,11 @@ builder.Services.AddCors(options =>
}); });
}); });
builder.WebHost.ConfigureKestrel(options =>
{
var kestrelConfig = builder.Configuration.GetSection("Kestrel");
options.Configure(kestrelConfig);
});
var app = builder.Build(); var app = builder.Build();
//----------------- Munkakönyvtárak létrehozása ----------------------------- //----------------- Munkakönyvtárak létrehozása -----------------------------
string imageDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Images"); string imageDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Images");
+8 -1
View File
@@ -30,5 +30,12 @@
} }
] ]
}, },
"AllowedHosts": "*" "AllowedHosts": "*",
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://localhost:8660"
}
}
}
} }
@@ -0,0 +1,13 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "9.0.4",
"commands": [
"dotnet-ef"
],
"rollForward": false
}
}
}
+6
View File
@@ -53,6 +53,11 @@ builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
}); });
builder.Services.AddFluentValidationSetup(); builder.Services.AddFluentValidationSetup();
builder.WebHost.ConfigureKestrel(options =>
{
var kestrelConfig = builder.Configuration.GetSection("Kestrel");
options.Configure(kestrelConfig);
});
var app = builder.Build(); var app = builder.Build();
@@ -72,6 +77,7 @@ if (!Directory.Exists(pdfDirectory))
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
app.UseMiddleware<JwtMiddleware>(); app.UseMiddleware<JwtMiddleware>();
// Configure the HTTP request pipeline. // Configure the HTTP request pipeline.
@@ -2,8 +2,14 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>false</InvariantGlobalization>
<PublishAot>false</PublishAot>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
+8 -1
View File
@@ -28,5 +28,12 @@
} }
] ]
}, },
"AllowedHosts": "*" "AllowedHosts": "*",
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://localhost:8670"
}
}
}
} }