Florin Bobiș commited on
Commit
c7e7da5
1 Parent(s): d42c7d8
Files changed (1) hide show
  1. Program.cs +4 -0
Program.cs CHANGED
@@ -2,6 +2,10 @@ using System.Text.Json;
2
  using Microsoft.EntityFrameworkCore;
3
 
4
  var builder = WebApplication.CreateBuilder(args);
 
 
 
 
5
 
6
  builder.Services.AddDbContext<QuoteDbContext>(options =>
7
  options.UseSqlite("Data Source=quotes.db"));
 
2
  using Microsoft.EntityFrameworkCore;
3
 
4
  var builder = WebApplication.CreateBuilder(args);
5
+ builder.WebHost.ConfigureKestrel(serverOptions =>
6
+ {
7
+ serverOptions.Listen(System.Net.IPAddress.Any, 7860); // Listen on all network interfaces on port 5000
8
+ });
9
 
10
  builder.Services.AddDbContext<QuoteDbContext>(options =>
11
  options.UseSqlite("Data Source=quotes.db"));