Setting up the running port

This commit is contained in:
Eugenio Chiodo 2021-04-26 19:40:49 +02:00
parent fc1ced2d61
commit cfc3550c99
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "5.0.5",
"commands": [
"dotnet-ef"
]
}
}
}

View File

@ -20,6 +20,12 @@ namespace drinkMe.Server
Host.CreateDefaultBuilder(args) Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder => .ConfigureWebHostDefaults(webBuilder =>
{ {
webBuilder.ConfigureKestrel(serverOptions =>
{
serverOptions.ListenLocalhost(6971);
serverOptions.UseSystemd();
serverOptions.AddServerHeader = false;
});
webBuilder.UseStartup<Startup>(); webBuilder.UseStartup<Startup>();
}); });
} }

View File

@ -2,6 +2,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<UserSecretsId>761efcc7-e39d-4e73-bd92-73573aca8427</UserSecretsId>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>