Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

nuget.org : peak.lib.ocelot.nacos

Ocelot Nacos网关 appsettings.json 配置文件 { "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } }, "AllowedHosts": "*", "nacos": { "ServerAddresses": [ "http://192.168.40.117:8848" ], "DefaultTimeOut": 15000, "ListenInterval": 1000, "ServiceName": "NacosGateway", "GroupName": "atlantis-cloud", "Namespace": "public", "NamingUseRpc": false }, "Routes": [ { "UseServiceDiscovery": true, "DownstreamPathTemplate": "/sovell/person/clientapi/{url}", "DownstreamScheme": "http", "ServiceName": "sovell-person-clientapi", "LoadBalancerOptions": { "Type": "RoundRobin" }, "UpstreamPathTemplate": "/api/{url}", "UpstreamHttpMethod": [ "Get", "Post" ], "ReRoutesCaseSensitive": false, "AuthenticationOptions": { "AuthenticationProviderKey": null, "AllowedScopes": [] }, "HttpHandlerOptions": { "AllowAutoRedirect": false, "UseCookieContainer": false, "UseTracing": false, "UseProxy": true }, "DangerousAcceptAnyServerCertificateValidator": false, "Timeout": 0 } ], "GlobalConfiguration": { "ServiceDiscoveryProvider": { "Type": "Nacos" } } } 程序引用: Program.cs var builder = WebApplication.CreateBuilder(args); builder.Services.AddOcelot().AddNacos(); 或 builder.Services.AddOcelot().AddNacos(“https://127.0.0.1:8848/”); var app = builder.Build(); app.UseOcelot().Wait();

Registry - JSON
purl: pkg:nuget/peak.lib.ocelot.nacos
License:
Latest release: 12 months ago
First release: over 1 year ago
Downloads: 1,755 total
Last synced: 5 days ago

    Loading...
    Readme
    Loading...