Exposing on 0.0.0.0 instead of localhost
This commit is contained in:
@@ -10,6 +10,7 @@ using Microsoft.IdentityModel.Tokens;
|
||||
using System.Text;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.WebHost.ConfigureKestrel(serverOptions => {});
|
||||
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
{
|
||||
"Kestrel": {
|
||||
"Endpoints": {
|
||||
"Http": {
|
||||
"Url": "http://0.0.0.0:5000"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MongoDB": {
|
||||
"ConnectionString": "mongodb://192.168.86.50:27017",
|
||||
"DatabaseName": "GameDb"
|
||||
|
||||
Reference in New Issue
Block a user