mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-27 03:38:25 +00:00
Change hosting to external IP
This commit is contained in:
@@ -14,19 +14,20 @@ namespace PodNoms.Api {
|
||||
static bool isDevelopment =
|
||||
Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == EnvironmentName.Development;
|
||||
|
||||
public static void Main (string[] args) {
|
||||
CreateWebHostBuilder (args).Build ().Run ();
|
||||
public static void Main(string[] args) {
|
||||
CreateWebHostBuilder(args).Build().Run();
|
||||
}
|
||||
public static IWebHostBuilder CreateWebHostBuilder (string[] args) =>
|
||||
WebHost.CreateDefaultBuilder (args)
|
||||
.UseStartup<Startup> ();
|
||||
// .UseKestrel(options => {
|
||||
// options.Listen(IPAddress.Any, 5000);
|
||||
// if (isDevelopment){
|
||||
// options.Listen(IPAddress.Any, 5001, listenOptions => {
|
||||
// listenOptions.UseHttps("certs/dev2.podnoms.com.pfx", "secret");
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
|
||||
WebHost.CreateDefaultBuilder(args)
|
||||
.UseStartup<Startup>()
|
||||
.UseUrls("http://0.0.0.0:5000");
|
||||
// .UseKestrel(options => {
|
||||
// options.Listen(IPAddress.Any, 5000);
|
||||
// if (isDevelopment){
|
||||
// options.Listen(IPAddress.Any, 5001, listenOptions => {
|
||||
// listenOptions.UseHttps("certs/dev2.podnoms.com.pfx", "secret");
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user