Aggiunto indirizzo di ascolto in appsettings predefinito (problemi di lettura da fixare)

This commit is contained in:
2026-02-18 08:56:03 +01:00
parent 5e0d1cce20
commit 69196518cf
4 changed files with 35 additions and 4 deletions

View File

@@ -1,9 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<ActiveDebugProfile>https</ActiveDebugProfile> <ActiveDebugProfile>http</ActiveDebugProfile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor> <DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup>
</Project> </Project>

View File

@@ -18,7 +18,7 @@
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, },
"dotnetRunMessages": true, "dotnetRunMessages": true,
"applicationUrl": "https://localhost:7297;http://localhost:5011" "applicationUrl": "https://localhost:5001"
}, },
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",

View File

@@ -10,5 +10,18 @@
"http://127.0.0.1:5500", "http://127.0.0.1:5500",
"http://localhost:5500" "http://localhost:5500"
] ]
},
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://localhost:5000"
},
"Https": {
"Url": "https://localhost:5001",
"Certificate": {
"Path": "certs/localhost.pfx", // Optional: Path to the certificate file
"Password": "password" // Optional: Certificate password if required
}
}
} }
} }

View File

@@ -11,5 +11,20 @@
"http://localhost:5500" "http://localhost:5500"
] ]
}, },
"AllowedHosts": "*" "AllowedHosts": "*",
} "Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://0.0.0.0:5000"
},
/*
"Https": {
"Url": "https://0.0.0.0:5001",
"Certificate": {
"Path": "certs/localhost.pfx", // Path to the certificate file
"Password": "password" // Optional: Certificate password if required
}
}
*/
}
}