You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.6 KiB
107 lines
3.6 KiB
{
|
|
"ApiGateway": {
|
|
"AppId": "TEST-APP"//这里是用于Ocelot主机去API服务器获取参数的标识,指定需要获取什么类型的网关配置
|
|
},
|
|
"Redis": {
|
|
"Configuration": "127.0.0.1",
|
|
"InstanceName": "LINGYUN.AbpApplication",
|
|
"DefaultDatabase": 10
|
|
},
|
|
"RemoteServices": {
|
|
"ApiGateway": {
|
|
"BaseUrl": "http://localhost:30001/",//Ocelot Api代理地址,参见Volo.Abp.HttpClient
|
|
"IdentityClient": "apigateway-host-client"
|
|
}
|
|
},
|
|
"IdentityClients": {//这里是用于Ocelot主机去API服务器获取参数授权用的,参见Volo.Abp.HttpClient.IdentityModel
|
|
"apigateway-host-client": {
|
|
"Authority": "http://localhost:44385",
|
|
"RequireHttps": false,
|
|
"GrantType": "client_credentials",
|
|
"ClientId": "apigateway-host-client",
|
|
"Scope": "apigateway-service",
|
|
"ClientSecret": "1q2w3e*",
|
|
"UserName": "ocelotHost",
|
|
"UserPassword": "Ocelot1."
|
|
}
|
|
},
|
|
"EnabledDynamicOcelot": true,
|
|
"CAP": {
|
|
"EventBus": {
|
|
"DefaultGroup": "ApiGateway-Host",
|
|
"Version": "v1",
|
|
"FailedRetryInterval": 300,
|
|
"FailedRetryCount": 10
|
|
},
|
|
"RabbitMQ": {
|
|
"HostName": "127.0.0.1",
|
|
"Port": 5672,
|
|
"UserName": "admin",
|
|
"Password": "admin",
|
|
"ExchangeName": "LINGYUN.ApiGateway",
|
|
"VirtualHost": "multi.service.test"
|
|
}
|
|
},
|
|
"AuthServer": {
|
|
"Authority": "http://localhost:44385/",//填写你的IdentityServer服务器地址
|
|
"ApiName": "apigateway-service",//填写你的IdentityServer服务器注册的ApiName
|
|
"ApiSecret": "defj98734htgrb90365D23"//填写你的IdentityServer服务器注册的ApiSecret
|
|
},
|
|
"Serilog": {
|
|
"MinimumLevel": {
|
|
"Default": "Debug",
|
|
"Override": {
|
|
"System": "Warning",
|
|
"Microsoft": "Warning"
|
|
}
|
|
},
|
|
"Enrich": [ "FromLogContext", "WithProcessId", "WithThreadId" ],
|
|
"WriteTo": [
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "Logs/Debug-.log",
|
|
"restrictedToMinimumLevel": "Debug",
|
|
"rollingInterval": "Day",
|
|
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss} [{Level:u3}] [{SourceContext}] [{ProcessId}] [{ThreadId}] - {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "Logs/Info-.log",
|
|
"restrictedToMinimumLevel": "Information",
|
|
"rollingInterval": "Day",
|
|
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss} [{Level:u3}] [{SourceContext}] [{ProcessId}] [{ThreadId}] - {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "Logs/Warn-.log",
|
|
"restrictedToMinimumLevel": "Warning",
|
|
"rollingInterval": "Day",
|
|
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss} [{Level:u3}] [{SourceContext}] [{ProcessId}] [{ThreadId}] - {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "Logs/Error-.log",
|
|
"restrictedToMinimumLevel": "Error",
|
|
"rollingInterval": "Day",
|
|
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss} [{Level:u3}] [{SourceContext}] [{ProcessId}] [{ThreadId}] - {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "Logs/Fatal-.log",
|
|
"restrictedToMinimumLevel": "Fatal",
|
|
"rollingInterval": "Day",
|
|
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss} [{Level:u3}] [{SourceContext}] [{ProcessId}] [{ThreadId}] - {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|