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.
103 lines
3.1 KiB
103 lines
3.1 KiB
{
|
|
"ApiGateway": {
|
|
"AppId": "TEST-APP"//这里是用于Ocelot主机去API服务器获取参数的标识,指定需要获取什么类型的网关配置
|
|
},
|
|
"Redis": {
|
|
"Configuration": "127.0.0.1,defaultDatabase=10",
|
|
"InstanceName": "LINGYUN.AbpApplication"
|
|
},
|
|
"RemoteServices": {
|
|
"ApiGateway": {
|
|
"BaseUrl": "http://localhost:30001/",
|
|
"IdentityClient": "ApigatewayHostClient"
|
|
}
|
|
},
|
|
"IdentityClients": {
|
|
"ApigatewayHostClient": {
|
|
"Authority": "http://localhost:44385",
|
|
"RequireHttps": false,
|
|
"GrantType": "client_credentials",
|
|
"ClientId": "ApigatewayHostClient",
|
|
"ClientSecret": "1q2w3e*",
|
|
"Scope": "lingyun-abp-application"
|
|
}
|
|
},
|
|
"EnabledDynamicOcelot": true,
|
|
"CAP": {
|
|
"EventBus": {
|
|
"DefaultGroupName": "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/",
|
|
"ApiName": "lingyun-abp-application"
|
|
},
|
|
"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}"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|