Publishoz
This commit is contained in:
@@ -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();
|
||||
//----------------- Munkakönyvtárak létrehozása -----------------------------
|
||||
string imageDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Images");
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -53,6 +53,11 @@ builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
|
||||
});
|
||||
|
||||
builder.Services.AddFluentValidationSetup();
|
||||
builder.WebHost.ConfigureKestrel(options =>
|
||||
{
|
||||
var kestrelConfig = builder.Configuration.GetSection("Kestrel");
|
||||
options.Configure(kestrelConfig);
|
||||
});
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
@@ -72,6 +77,7 @@ if (!Directory.Exists(pdfDirectory))
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
app.UseMiddleware<JwtMiddleware>();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
|
||||
@@ -2,8 +2,14 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<SelfContained>true</SelfContained>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<InvariantGlobalization>false</InvariantGlobalization>
|
||||
<PublishAot>false</PublishAot>
|
||||
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -28,5 +28,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
"AllowedHosts": "*",
|
||||
"Kestrel": {
|
||||
"Endpoints": {
|
||||
"Http": {
|
||||
"Url": "http://localhost:8670"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user