🔨 Reconfigured to use new discovery

This commit is contained in:
2025-12-13 17:38:49 +08:00
parent bc3d030a1e
commit 42082fbefa
17 changed files with 138 additions and 18 deletions

View File

@@ -9,6 +9,8 @@ var builder = WebApplication.CreateBuilder(args);
builder.AddServiceDefaults();
builder.Services.Configure<ServiceRegistrationOptions>(opts => { opts.Name = "sphere"; });
// Configure Kestrel and server options
builder.ConfigureAppKestrel(builder.Configuration);

View File

@@ -10,7 +10,10 @@
},
"AllowedHosts": "*",
"ConnectionStrings": {
"App": "Host=localhost;Port=5432;Database=dyson_sphere;Username=postgres;Password=postgres;Include Error Detail=True;Maximum Pool Size=20;Connection Idle Lifetime=60"
"App": "Host=localhost;Port=5432;Database=dyson_sphere;Username=postgres;Password=postgres;Include Error Detail=True;Maximum Pool Size=20;Connection Idle Lifetime=60",
"Registrar": "127.0.0.1:2379",
"Cache": "127.0.0.1:6379",
"Queue": "127.0.0.1:4222"
},
"GeoIp": {
"DatabasePath": "./Keys/GeoLite2-City.mmdb"