Exposing on 0.0.0.0 instead of localhost

This commit is contained in:
hz
2025-05-09 12:15:40 -07:00
parent c0a94f26d6
commit a493715f29
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ using Microsoft.IdentityModel.Tokens;
using System.Text; using System.Text;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
builder.WebHost.ConfigureKestrel(serverOptions => {});
builder.Services.AddControllers(); builder.Services.AddControllers();
builder.Services.AddEndpointsApiExplorer(); builder.Services.AddEndpointsApiExplorer();
+7
View File
@@ -1,4 +1,11 @@
{ {
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://0.0.0.0:5000"
}
}
},
"MongoDB": { "MongoDB": {
"ConnectionString": "mongodb://192.168.86.50:27017", "ConnectionString": "mongodb://192.168.86.50:27017",
"DatabaseName": "GameDb" "DatabaseName": "GameDb"