From bbcaa27ac5feb8e4893324199db4ca9633b139ad Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 25 Oct 2025 16:40:00 +0800 Subject: [PATCH] :sparkles: Thinking of the LangChain ver --- DysonNetwork.Control/AppHost.cs | 1 - .../DysonNetwork.Develop.csproj | 1 - .../Startup/ApplicationConfiguration.cs | 2 - DysonNetwork.Develop/appsettings.json | 4 - DysonNetwork.Drive/DysonNetwork.Drive.csproj | 5 - DysonNetwork.Drive/appsettings.json | 6 +- DysonNetwork.Gateway/Program.cs | 2 +- .../DysonNetwork.Insight.csproj | 10 +- .../DysonNetwork.Insight.http | 6 - DysonNetwork.Insight/Program.cs | 10 +- .../Properties/launchSettings.json | 2 - .../Startup/ApplicationConfiguration.cs | 2 - .../Startup/ServiceCollectionExtensions.cs | 115 ++++++++++++++++++ .../Thinking/ThinkingController.cs | 99 +++++++++++++++ .../Thinking/ThinkingProvider.cs | 37 ++++++ DysonNetwork.Insight/appsettings.json | 47 +++---- DysonNetwork.Pass/DysonNetwork.Pass.csproj | 5 - .../Startup/ApplicationConfiguration.cs | 2 - DysonNetwork.Pass/appsettings.json | 9 +- .../DysonNetwork.Sphere.csproj | 5 - publish/settings/develop.json | 9 +- publish/settings/drive.json | 6 +- publish/settings/pass.json | 9 +- publish/settings/ring.json | 9 +- publish/settings/sphere.json | 9 +- settings/develop.json | 9 +- settings/drive.json | 6 +- settings/pass.json | 9 +- settings/ring.json | 9 +- settings/sphere.json | 9 +- 30 files changed, 306 insertions(+), 148 deletions(-) delete mode 100644 DysonNetwork.Insight/DysonNetwork.Insight.http create mode 100644 DysonNetwork.Insight/Startup/ServiceCollectionExtensions.cs create mode 100644 DysonNetwork.Insight/Thinking/ThinkingController.cs create mode 100644 DysonNetwork.Insight/Thinking/ThinkingProvider.cs diff --git a/DysonNetwork.Control/AppHost.cs b/DysonNetwork.Control/AppHost.cs index 2b43345..d5f6cca 100644 --- a/DysonNetwork.Control/AppHost.cs +++ b/DysonNetwork.Control/AppHost.cs @@ -21,7 +21,6 @@ var developService = builder.AddProject("develop" .WithReference(passService) .WithReference(ringService) .WithReference(sphereService); - var insightService = builder.AddProject("insight") .WithReference(passService) .WithReference(ringService) diff --git a/DysonNetwork.Develop/DysonNetwork.Develop.csproj b/DysonNetwork.Develop/DysonNetwork.Develop.csproj index 57dc372..13a1264 100644 --- a/DysonNetwork.Develop/DysonNetwork.Develop.csproj +++ b/DysonNetwork.Develop/DysonNetwork.Develop.csproj @@ -17,7 +17,6 @@ - diff --git a/DysonNetwork.Develop/Startup/ApplicationConfiguration.cs b/DysonNetwork.Develop/Startup/ApplicationConfiguration.cs index 84c3c35..675bcb1 100644 --- a/DysonNetwork.Develop/Startup/ApplicationConfiguration.cs +++ b/DysonNetwork.Develop/Startup/ApplicationConfiguration.cs @@ -1,7 +1,6 @@ using DysonNetwork.Develop.Identity; using DysonNetwork.Shared.Auth; using DysonNetwork.Shared.Http; -using Prometheus; namespace DysonNetwork.Develop.Startup; @@ -9,7 +8,6 @@ public static class ApplicationConfiguration { public static WebApplication ConfigureAppMiddleware(this WebApplication app, IConfiguration configuration) { - app.MapMetrics(); app.MapOpenApi(); app.UseRequestLocalization(); diff --git a/DysonNetwork.Develop/appsettings.json b/DysonNetwork.Develop/appsettings.json index 8ecf09a..ba2a4d7 100644 --- a/DysonNetwork.Develop/appsettings.json +++ b/DysonNetwork.Develop/appsettings.json @@ -18,9 +18,5 @@ }, "Etcd": { "Insecure": true - }, - "Service": { - "Name": "DysonNetwork.Develop", - "Url": "https://localhost:7192" } } diff --git a/DysonNetwork.Drive/DysonNetwork.Drive.csproj b/DysonNetwork.Drive/DysonNetwork.Drive.csproj index 192831b..f167419 100644 --- a/DysonNetwork.Drive/DysonNetwork.Drive.csproj +++ b/DysonNetwork.Drive/DysonNetwork.Drive.csproj @@ -43,11 +43,6 @@ - - - - - diff --git a/DysonNetwork.Drive/appsettings.json b/DysonNetwork.Drive/appsettings.json index b63b4eb..1186138 100644 --- a/DysonNetwork.Drive/appsettings.json +++ b/DysonNetwork.Drive/appsettings.json @@ -117,9 +117,5 @@ "KnownProxies": [ "127.0.0.1", "::1" - ], - "Service": { - "Name": "DysonNetwork.Drive", - "Url": "https://localhost:7092" - } + ] } diff --git a/DysonNetwork.Gateway/Program.cs b/DysonNetwork.Gateway/Program.cs index 6891e46..8350f0f 100644 --- a/DysonNetwork.Gateway/Program.cs +++ b/DysonNetwork.Gateway/Program.cs @@ -56,7 +56,7 @@ builder.Services.AddRateLimiter(options => }; }); -var serviceNames = new[] { "ring", "pass", "drive", "sphere", "develop" }; +var serviceNames = new[] { "ring", "pass", "drive", "sphere", "develop", "insight" }; var specialRoutes = new[] { diff --git a/DysonNetwork.Insight/DysonNetwork.Insight.csproj b/DysonNetwork.Insight/DysonNetwork.Insight.csproj index d62eee4..a479052 100644 --- a/DysonNetwork.Insight/DysonNetwork.Insight.csproj +++ b/DysonNetwork.Insight/DysonNetwork.Insight.csproj @@ -8,13 +8,21 @@ + + + + - + + + + + diff --git a/DysonNetwork.Insight/DysonNetwork.Insight.http b/DysonNetwork.Insight/DysonNetwork.Insight.http deleted file mode 100644 index 1959c32..0000000 --- a/DysonNetwork.Insight/DysonNetwork.Insight.http +++ /dev/null @@ -1,6 +0,0 @@ -@DysonNetwork.Insight_HostAddress = http://localhost:5232 - -GET {{DysonNetwork.Insight_HostAddress}}/weatherforecast/ -Accept: application/json - -### diff --git a/DysonNetwork.Insight/Program.cs b/DysonNetwork.Insight/Program.cs index e5cea3a..b869bc8 100644 --- a/DysonNetwork.Insight/Program.cs +++ b/DysonNetwork.Insight/Program.cs @@ -1,7 +1,9 @@ using DysonNetwork.Insight; using DysonNetwork.Insight.Startup; using DysonNetwork.Shared.Http; +using LangChain.Extensions.DependencyInjection; using Microsoft.EntityFrameworkCore; +using LangChain.Serve; var builder = WebApplication.CreateBuilder(args); @@ -9,7 +11,13 @@ builder.AddServiceDefaults(); builder.ConfigureAppKestrel(builder.Configuration); -builder.Services.AddDbContext(); +builder.Services.AddControllers(); +builder.Services.AddAppServices(builder.Configuration); +builder.Services.AddAppAuthentication(); +builder.Services.AddAppFlushHandlers(); +builder.Services.AddAppBusinessServices(); +builder.Services.AddThinkingServices(builder.Configuration); +builder.Services.AddLangChainServe(); builder.AddSwaggerManifest( "DysonNetwork.Insight", diff --git a/DysonNetwork.Insight/Properties/launchSettings.json b/DysonNetwork.Insight/Properties/launchSettings.json index 69c276c..7d13ff2 100644 --- a/DysonNetwork.Insight/Properties/launchSettings.json +++ b/DysonNetwork.Insight/Properties/launchSettings.json @@ -5,7 +5,6 @@ "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": false, - "applicationUrl": "http://localhost:5232", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } @@ -14,7 +13,6 @@ "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": false, - "applicationUrl": "https://localhost:7142;http://localhost:5232", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } diff --git a/DysonNetwork.Insight/Startup/ApplicationConfiguration.cs b/DysonNetwork.Insight/Startup/ApplicationConfiguration.cs index 26e7137..8a30ed6 100644 --- a/DysonNetwork.Insight/Startup/ApplicationConfiguration.cs +++ b/DysonNetwork.Insight/Startup/ApplicationConfiguration.cs @@ -1,5 +1,4 @@ using DysonNetwork.Shared.Http; -using Prometheus; namespace DysonNetwork.Insight.Startup; @@ -7,7 +6,6 @@ public static class ApplicationConfiguration { public static WebApplication ConfigureAppMiddleware(this WebApplication app, IConfiguration configuration) { - app.MapMetrics(); app.MapOpenApi(); app.UseRequestLocalization(); diff --git a/DysonNetwork.Insight/Startup/ServiceCollectionExtensions.cs b/DysonNetwork.Insight/Startup/ServiceCollectionExtensions.cs new file mode 100644 index 0000000..994924e --- /dev/null +++ b/DysonNetwork.Insight/Startup/ServiceCollectionExtensions.cs @@ -0,0 +1,115 @@ +using System.Text.Json; +using System.Text.Json.Serialization; +using DysonNetwork.Insight.Thinking; +using DysonNetwork.Shared.Cache; +using LangChain.Memory; +using LangChain.Serve; +using LangChain.Serve.Abstractions.Repository; +using LangChain.Serve.OpenAI; +using static LangChain.Chains.Chain; +using Message = LangChain.Providers.Message; +using MessageRole = LangChain.Providers.MessageRole; +using NodaTime; +using NodaTime.Serialization.SystemTextJson; + +namespace DysonNetwork.Insight.Startup; + +public static class ServiceCollectionExtensions +{ + public static IServiceCollection AddAppServices(this IServiceCollection services, IConfiguration configuration) + { + services.AddDbContext(); + services.AddSingleton(SystemClock.Instance); + services.AddHttpContextAccessor(); + services.AddSingleton(); + + services.AddHttpClient(); + + // Register gRPC services + services.AddGrpc(options => + { + options.EnableDetailedErrors = true; // Will be adjusted in Program.cs + options.MaxReceiveMessageSize = 16 * 1024 * 1024; // 16MB + options.MaxSendMessageSize = 16 * 1024 * 1024; // 16MB + }); + + // Register gRPC reflection for service discovery + services.AddGrpc(); + + // Register gRPC services + + // Register OIDC services + services.AddControllers().AddJsonOptions(options => + { + options.JsonSerializerOptions.NumberHandling = JsonNumberHandling.AllowNamedFloatingPointLiterals; + options.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower; + options.JsonSerializerOptions.DictionaryKeyPolicy = JsonNamingPolicy.SnakeCaseLower; + + options.JsonSerializerOptions.ConfigureForNodaTime(DateTimeZoneProviders.Tzdb); + }); + + return services; + } + + public static IServiceCollection AddAppAuthentication(this IServiceCollection services) + { + services.AddAuthorization(); + return services; + } + + public static IServiceCollection AddAppFlushHandlers(this IServiceCollection services) + { + services.AddSingleton(); + + return services; + } + + public static IServiceCollection AddAppBusinessServices(this IServiceCollection services) + { + return services; + } + + public static IServiceCollection AddThinkingServices(this IServiceCollection services, IConfiguration configuration) + { + var modelProvider = new ThinkingProvider(configuration); + services.AddSingleton(modelProvider); + + services.AddCustomNameGenerator(async messages => + { + var template = + @"You will be given conversation between User and Assistant. Your task is to give name to this conversation using maximum 3 words +Conversation: +{chat_history} +Your name: "; + var conversationBufferMemory = await ConvertToConversationBuffer(messages); + var chain = LoadMemory(conversationBufferMemory, "chat_history") + | Template(template) + | LLM(modelProvider.GetModel()); + + return await chain.RunAsync("text") ?? string.Empty; + }); + + return services; + } + + private static async Task ConvertToConversationBuffer( + IReadOnlyCollection list + ) + { + var conversationBufferMemory = new ConversationBufferMemory + { + Formatter = + { + HumanPrefix = "User", + AiPrefix = "Assistant", + } + }; + List converted = list + .Select(x => new Message(x.Content, x.Author == MessageAuthor.User ? MessageRole.Human : MessageRole.Ai)) + .ToList(); + + await conversationBufferMemory.ChatHistory.AddMessages(converted); + + return conversationBufferMemory; + } +} \ No newline at end of file diff --git a/DysonNetwork.Insight/Thinking/ThinkingController.cs b/DysonNetwork.Insight/Thinking/ThinkingController.cs new file mode 100644 index 0000000..0655351 --- /dev/null +++ b/DysonNetwork.Insight/Thinking/ThinkingController.cs @@ -0,0 +1,99 @@ +using System.ComponentModel.DataAnnotations; +using LangChain.Providers; +using Microsoft.AspNetCore.Mvc; +using System.Text; +using CSharpToJsonSchema; + +namespace DysonNetwork.Insight.Thinking; + +[ApiController] +[Route("/api/thinking")] +public class ThinkingController(ThinkingProvider provider) : ControllerBase +{ + public class StreamThinkingRequest + { + [Required] public string UserMessage { get; set; } = null!; + } + + [HttpPost("stream")] + public async Task ChatStream([FromBody] StreamThinkingRequest request) + { + // Set response for streaming + Response.Headers.Append("Content-Type", "text/event-stream"); + Response.StatusCode = 200; + + var model = provider.GetModel(); + + // Build conversation history (you may load from your memory store) + var messages = new List + { + new Message + { + Role = MessageRole.System, + Content = + "You're a helpful assistant on the Solar Network, a social network. Your name is Sn-chan, a cute sweet heart with passion for almost everything." + }, + new Message + { + Role = MessageRole.Human, + Content = request.UserMessage + } + }; + + // Mock tool definitions — you will replace these with your real tool calls + Func> getUserProfileAsync = async (userId) => + { + // MOCK: simulate fetching user profile + await Task.Delay(100); // simulate async work + return $"{{\"userId\":\"{userId}\",\"name\":\"MockUser\",\"bio\":\"Loves music and tech.\"}}"; + }; + + Func> getRecentPostsAsync = async (topic) => + { + // MOCK: simulate fetching recent posts + await Task.Delay(200); + return + $"[{{\"postId\":\"p1\",\"topic\":\"{topic}\",\"content\":\"Mock post content 1.\"}} , {{\"postId\":\"p2\",\"topic\":\"{topic}\",\"content\":\"Mock post content 2.\"}}]"; + }; + + // You might pass these tools into your model/agent context + // (Assuming your LangChain .NET version supports tool-binding; adapt as needed.) + + // Kick off streaming generation + var accumulatedContent = new StringBuilder(); + await foreach (var chunk in model.GenerateAsync( + new ChatRequest + { + Messages = messages, + Tools = + [ + new Tool + { + Name = "get_user_profile", + Description = "Get a user profile from the Solar Network." + }, + new Tool + { + Name = "get_recent_posts", + Description = "Get recent posts from the Solar Network." + } + ] + }, + new ChatSettings { UseStreaming = true } + )) + { + // Write each chunk to the HTTP response as SSE + var data = chunk.LastMessageContent; + accumulatedContent.Append(data); + var sb = new StringBuilder(); + sb.Append("data: "); + sb.AppendLine(accumulatedContent.ToString().Replace("\n", "\ndata: ")); + sb.AppendLine(); // the blank line terminates the chunk + var bytes = Encoding.UTF8.GetBytes(sb.ToString()); + await Response.Body.WriteAsync(bytes); + await Response.Body.FlushAsync(); + } + + // Optionally: after finishing streaming, you can save the assistant message to history. + } +} \ No newline at end of file diff --git a/DysonNetwork.Insight/Thinking/ThinkingProvider.cs b/DysonNetwork.Insight/Thinking/ThinkingProvider.cs new file mode 100644 index 0000000..b01096f --- /dev/null +++ b/DysonNetwork.Insight/Thinking/ThinkingProvider.cs @@ -0,0 +1,37 @@ +using LangChain.Providers; +using LangChain.Providers.Ollama; + +namespace DysonNetwork.Insight.Thinking; + +public class ThinkingProvider +{ + public readonly Provider Provider; + public readonly string? ModelProviderType; + public readonly string? ModelDefault; + + public ThinkingProvider(IConfiguration configuration) + { + var cfg = configuration.GetSection("Thinking"); + ModelProviderType = cfg.GetValue("Provider")?.ToLower(); + switch (ModelProviderType) + { + case "ollama": + var endpoint = cfg.GetValue("Endpoint"); + Provider = new OllamaProvider(endpoint ?? "http://localhost:11434/api"); + break; + default: + throw new IndexOutOfRangeException("Unknown thinking provider: " + ModelProviderType); + } + + ModelDefault = cfg.GetValue("Model"); + } + + public ChatModel GetModel(string? name = null) + { + return ModelProviderType switch + { + "ollama" => new OllamaChatModel((Provider as OllamaProvider)!, (name ?? ModelDefault)!), + _ => throw new IndexOutOfRangeException("Unknown thinking provider: " + ModelProviderType), + }; + } +} \ No newline at end of file diff --git a/DysonNetwork.Insight/appsettings.json b/DysonNetwork.Insight/appsettings.json index 7479841..6e2f978 100644 --- a/DysonNetwork.Insight/appsettings.json +++ b/DysonNetwork.Insight/appsettings.json @@ -1,26 +1,27 @@ { - "Debug": true, - "BaseUrl": "http://localhost:5071", - "SiteUrl": "https://solian.app", - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" + "Debug": true, + "BaseUrl": "http://localhost:5071", + "SiteUrl": "https://solian.app", + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*", + "ConnectionStrings": { + "App": "Host=localhost;Port=5432;Database=dyson_insight;Username=postgres;Password=postgres;Include Error Detail=True;Maximum Pool Size=20;Connection Idle Lifetime=60" + }, + "KnownProxies": [ + "127.0.0.1", + "::1" + ], + "Etcd": { + "Insecure": true + }, + "Thinking": { + "Provider": "ollama", + "Model": "qwen3:8b", + "Endpoint": "http://localhost:11434/api" } - }, - "AllowedHosts": "*", - "ConnectionStrings": { - "App": "Host=localhost;Port=5432;Database=dyson_insight;Username=postgres;Password=postgres;Include Error Detail=True;Maximum Pool Size=20;Connection Idle Lifetime=60" - }, - "KnownProxies": ["127.0.0.1", "::1"], - "Swagger": { - "PublicBasePath": "/insight" - }, - "Etcd": { - "Insecure": true - }, - "Service": { - "Name": "DysonNetwork.Insight", - "Url": "https://localhost:7192" - } } \ No newline at end of file diff --git a/DysonNetwork.Pass/DysonNetwork.Pass.csproj b/DysonNetwork.Pass/DysonNetwork.Pass.csproj index f02b74a..7d83b3d 100644 --- a/DysonNetwork.Pass/DysonNetwork.Pass.csproj +++ b/DysonNetwork.Pass/DysonNetwork.Pass.csproj @@ -32,11 +32,6 @@ - - - - - diff --git a/DysonNetwork.Pass/Startup/ApplicationConfiguration.cs b/DysonNetwork.Pass/Startup/ApplicationConfiguration.cs index d0ee30e..c56ee7f 100644 --- a/DysonNetwork.Pass/Startup/ApplicationConfiguration.cs +++ b/DysonNetwork.Pass/Startup/ApplicationConfiguration.cs @@ -6,7 +6,6 @@ using DysonNetwork.Pass.Permission; using DysonNetwork.Pass.Realm; using DysonNetwork.Pass.Wallet; using DysonNetwork.Shared.Http; -using Prometheus; namespace DysonNetwork.Pass.Startup; @@ -14,7 +13,6 @@ public static class ApplicationConfiguration { public static WebApplication ConfigureAppMiddleware(this WebApplication app, IConfiguration configuration) { - app.MapMetrics(); app.MapOpenApi(); app.UseRequestLocalization(); diff --git a/DysonNetwork.Pass/appsettings.json b/DysonNetwork.Pass/appsettings.json index 2613200..fed6096 100644 --- a/DysonNetwork.Pass/appsettings.json +++ b/DysonNetwork.Pass/appsettings.json @@ -71,12 +71,5 @@ } } }, - "KnownProxies": ["127.0.0.1", "::1"], - "Service": { - "Name": "DysonNetwork.Pass", - "Url": "https://localhost:7058" - }, - "Etcd": { - "Insecure": true - } + "KnownProxies": ["127.0.0.1", "::1"] } diff --git a/DysonNetwork.Sphere/DysonNetwork.Sphere.csproj b/DysonNetwork.Sphere/DysonNetwork.Sphere.csproj index 360c271..a33198f 100644 --- a/DysonNetwork.Sphere/DysonNetwork.Sphere.csproj +++ b/DysonNetwork.Sphere/DysonNetwork.Sphere.csproj @@ -47,11 +47,6 @@ - - - - - diff --git a/publish/settings/develop.json b/publish/settings/develop.json index a70297c..0252130 100644 --- a/publish/settings/develop.json +++ b/publish/settings/develop.json @@ -12,12 +12,5 @@ "ConnectionStrings": { "App": "Host=host.docker.internal;Port=5432;Database=dyson_network_dev;Username=postgres;Password=postgres;Include Error Detail=True;Maximum Pool Size=20;Connection Idle Lifetime=60" }, - "KnownProxies": ["127.0.0.1", "::1"], - "Etcd": { - "Insecure": true - }, - "Service": { - "Name": "DysonNetwork.Develop", - "Url": "https://localhost:7192" - } + "KnownProxies": ["127.0.0.1", "::1"] } diff --git a/publish/settings/drive.json b/publish/settings/drive.json index b3bc501..910d465 100644 --- a/publish/settings/drive.json +++ b/publish/settings/drive.json @@ -119,9 +119,5 @@ } } }, - "KnownProxies": ["127.0.0.1", "::1"], - "Service": { - "Name": "DysonNetwork.Drive", - "Url": "https://localhost:7092" - } + "KnownProxies": ["127.0.0.1", "::1"] } diff --git a/publish/settings/pass.json b/publish/settings/pass.json index dea5e59..00ada18 100644 --- a/publish/settings/pass.json +++ b/publish/settings/pass.json @@ -71,12 +71,5 @@ } } }, - "KnownProxies": ["127.0.0.1", "::1"], - "Service": { - "Name": "DysonNetwork.Pass", - "Url": "https://localhost:7058" - }, - "Etcd": { - "Insecure": true - } + "KnownProxies": ["127.0.0.1", "::1"] } diff --git a/publish/settings/ring.json b/publish/settings/ring.json index 3a15453..90ef693 100644 --- a/publish/settings/ring.json +++ b/publish/settings/ring.json @@ -36,12 +36,5 @@ "GeoIp": { "DatabasePath": "./Keys/GeoLite2-City.mmdb" }, - "KnownProxies": ["127.0.0.1", "::1"], - "Service": { - "Name": "DysonNetwork.Ring", - "Url": "https://localhost:7259" - }, - "Etcd": { - "Insecure": true - } + "KnownProxies": ["127.0.0.1", "::1"] } diff --git a/publish/settings/sphere.json b/publish/settings/sphere.json index 22a3a07..a457400 100644 --- a/publish/settings/sphere.json +++ b/publish/settings/sphere.json @@ -27,12 +27,5 @@ "SecretId": "", "SecretKey": "" }, - "KnownProxies": ["127.0.0.1", "::1"], - "Etcd": { - "Insecure": true - }, - "Service": { - "Name": "DysonNetwork.Sphere", - "Url": "https://localhost:7099" - } + "KnownProxies": ["127.0.0.1", "::1"] } diff --git a/settings/develop.json b/settings/develop.json index eb6fc8c..a180de4 100644 --- a/settings/develop.json +++ b/settings/develop.json @@ -12,12 +12,5 @@ "ConnectionStrings": { "App": "Host=host.docker.internal;Port=5432;Database=dyson_develop;Username=postgres;Password=postgres;Include Error Detail=True;Maximum Pool Size=20;Connection Idle Lifetime=60" }, - "KnownProxies": ["127.0.0.1", "::1"], - "Etcd": { - "Insecure": true - }, - "Service": { - "Name": "DysonNetwork.Develop", - "Url": "https://localhost:7192" - } + "KnownProxies": ["127.0.0.1", "::1"] } diff --git a/settings/drive.json b/settings/drive.json index c84e251..f3274b3 100644 --- a/settings/drive.json +++ b/settings/drive.json @@ -119,9 +119,5 @@ } } }, - "KnownProxies": ["127.0.0.1", "::1"], - "Service": { - "Name": "DysonNetwork.Drive", - "Url": "https://localhost:7092" - } + "KnownProxies": ["127.0.0.1", "::1"] } diff --git a/settings/pass.json b/settings/pass.json index 156da49..7ed4df6 100644 --- a/settings/pass.json +++ b/settings/pass.json @@ -71,12 +71,5 @@ } } }, - "KnownProxies": ["127.0.0.1", "::1"], - "Service": { - "Name": "DysonNetwork.Pass", - "Url": "https://localhost:7058" - }, - "Etcd": { - "Insecure": true - } + "KnownProxies": ["127.0.0.1", "::1"] } diff --git a/settings/ring.json b/settings/ring.json index 43ef537..3b04985 100644 --- a/settings/ring.json +++ b/settings/ring.json @@ -36,12 +36,5 @@ "GeoIp": { "DatabasePath": "/app/keys/GeoLite2-City.mmdb" }, - "KnownProxies": ["127.0.0.1", "::1"], - "Service": { - "Name": "DysonNetwork.Ring", - "Url": "https://localhost:7259" - }, - "Etcd": { - "Insecure": true - } + "KnownProxies": ["127.0.0.1", "::1"] } diff --git a/settings/sphere.json b/settings/sphere.json index 18055c5..068ad46 100644 --- a/settings/sphere.json +++ b/settings/sphere.json @@ -27,12 +27,5 @@ "SecretId": "", "SecretKey": "" }, - "KnownProxies": ["127.0.0.1", "::1"], - "Etcd": { - "Insecure": true - }, - "Service": { - "Name": "DysonNetwork.Sphere", - "Url": "https://localhost:7099" - } + "KnownProxies": ["127.0.0.1", "::1"] }