removed https

This commit is contained in:
Martijn Scheepers
2020-04-01 10:54:12 +02:00
parent 5df9459750
commit 1805166843
3 changed files with 11 additions and 8 deletions

View File

@@ -17,9 +17,14 @@ namespace Arrestanten_planbord
public static void Main(string[] args)
{
var executingDir = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
Console.WriteLine("Entry Assembly location = " + executingDir);
Console.WriteLine("Assembly location = " + executingDir);
string directory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Console.WriteLine("Executing Assembly location = " + executingDir);
//var path = Path.Combine(directory, "wwwroot", "index.html");
//window.NavigateToLocalFile(path);
//ComponentsDesktop.Run<Startup>("My Blazor App", Path.Combine(executingDir, "wwwroot/index.html"));
CreateHostBuilder(args).Build().Run();
@@ -29,7 +34,7 @@ namespace Arrestanten_planbord
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
webBuilder.UseStartup<Startup>().UseUrls("http://localhost:5000");
});
}
}

View File

@@ -4,7 +4,7 @@
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:3373",
"sslPort": 44359
"sslPort": 0
}
},
"profiles": {
@@ -18,10 +18,10 @@
"Arrestanten_planbord": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"applicationUrl": "http://localhost:5000"
}
}
}
}

View File

@@ -94,7 +94,6 @@ namespace Arrestanten_planbord
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
@@ -112,7 +111,6 @@ namespace Arrestanten_planbord
endpoints.MapBlazorHub();
endpoints.MapHub<UpdateHub>("/UpdateHub");
endpoints.MapFallbackToPage("/_Host");
//endpoints.MapRazorPages("/Eindhoven");
});
}
}