Former-commit-id: f2497de9351de4b86f5dc0a3723ff7bbe15859fc
TangShanKaiPing
wanggang 6 years ago
parent 36916c5db1
commit 77c091dbe8

@ -1 +1,257 @@
{"PluginsStatus":{},"AgentMaxConnection":200,"AgentRequestQueueSize":2000,"GatewayQueueSize":400,"OutputServerAddress":false,"StatisticsEnabled":true,"StatisticsExts":"","WSEnabled":true,"BufferSize":4096,"PoolMaxSize":51200,"InstanceID":"771f61cb790c4bc29a881f55b74bb5df","Servers":[{"Uri":"http://localhost:8012/","MaxConnections":200,"Category":null,"Remark":null,"Properties":[]},{"Uri":"http://localhost:8010/","MaxConnections":200,"Category":null,"Remark":null,"Properties":[]},{"Uri":"http://localhost:8013/","MaxConnections":200,"Category":null,"Remark":null,"Properties":[]},{"Uri":"http://localhost:8011/","MaxConnections":200,"Category":null,"Remark":null,"Properties":[]},{"Uri":"http://localhost:8088/","MaxConnections":200,"Category":null,"Remark":null,"Properties":[]}],"Urls":[{"Servers":[],"PluginConfig":{"Requesting":[],"AgentRequesting":[],"HeaderWriting":[],"Requested":[],"ResponseError":[]},"Url":"*","Remark":null,"HashPattern":null,"MaxRps":0},{"Servers":[{"Url":"http://localhost:8013/","Weight":0,"MaxRps":0}],"PluginConfig":{"Requesting":[],"AgentRequesting":[],"HeaderWriting":[],"Requested":[],"ResponseError":[]},"Url":"/ManagementCenter.*","Remark":null,"HashPattern":null,"MaxRps":0},{"Servers":[],"PluginConfig":{"Requesting":["configuration_website_icon"],"AgentRequesting":[],"HeaderWriting":[],"Requested":[],"ResponseError":[]},"Url":"^/favicon\\.ico","Remark":null,"HashPattern":null,"MaxRps":0},{"Servers":[{"Url":"http://localhost:8012/","Weight":0,"MaxRps":0}],"PluginConfig":{"Requesting":[],"AgentRequesting":[],"HeaderWriting":[],"Requested":[],"ResponseError":[]},"Url":"/StudyCenter.*","Remark":null,"HashPattern":null,"MaxRps":0},{"Servers":[{"Url":"http://localhost:8010/","Weight":0,"MaxRps":0}],"PluginConfig":{"Requesting":[],"AgentRequesting":[],"HeaderWriting":[],"Requested":[],"ResponseError":[]},"Url":"/UserCenter.*","Remark":null,"HashPattern":"","MaxRps":0},{"Servers":[],"PluginConfig":{"Requesting":["configuration_static_resources"],"AgentRequesting":[],"HeaderWriting":[],"Requested":[],"ResponseError":[]},"Url":"^/__system.*","Remark":null,"HashPattern":null,"MaxRps":0},{"Servers":[{"Url":"http://localhost:8011/","Weight":0,"MaxRps":0}],"PluginConfig":{"Requesting":[],"AgentRequesting":[],"HeaderWriting":[],"Requested":[],"ResponseError":[]},"Url":"/IoTCenter.*","Remark":null,"HashPattern":null,"MaxRps":0},{"Servers":[{"Url":"http://localhost:8088/","Weight":0,"MaxRps":0}],"PluginConfig":{"Requesting":[],"AgentRequesting":[],"HeaderWriting":[],"Requested":[],"ResponseError":[]},"Url":"/.*","Remark":null,"HashPattern":null,"MaxRps":0}],"PluginConfig":{"Requesting":[],"AgentRequesting":[],"HeaderWriting":[],"Requested":[],"ResponseError":[]}}
{
"PluginsStatus": {
},
"AgentMaxConnection": 200,
"AgentRequestQueueSize": 2000,
"GatewayQueueSize": 400,
"OutputServerAddress": false,
"StatisticsEnabled": true,
"StatisticsExts": "",
"WSEnabled": true,
"BufferSize": 4096,
"PoolMaxSize": 51200,
"InstanceID": "771f61cb790c4bc29a881f55b74bb5df",
"Servers": [
{
"Uri": "http://localhost:8012/",
"MaxConnections": 200,
"Category": null,
"Remark": null,
"Properties": [
]
},
{
"Uri": "http://localhost:8010/",
"MaxConnections": 200,
"Category": null,
"Remark": null,
"Properties": [
]
},
{
"Uri": "http://localhost:8013/",
"MaxConnections": 200,
"Category": null,
"Remark": null,
"Properties": [
]
},
{
"Uri": "http://localhost:8011/",
"MaxConnections": 200,
"Category": null,
"Remark": null,
"Properties": [
]
},
{
"Uri": "http://localhost:8088/",
"MaxConnections": 200,
"Category": null,
"Remark": null,
"Properties": [
]
}
],
"Urls": [
{
"Servers": [
],
"PluginConfig": {
"Requesting": [
],
"AgentRequesting": [
],
"HeaderWriting": [
],
"Requested": [
],
"ResponseError": [
]
},
"Url": "*",
"Remark": null,
"HashPattern": null,
"MaxRps": 0
},
{
"Servers": [
{
"Url": "http://localhost:8013/",
"Weight": 0,
"MaxRps": 0
}
],
"PluginConfig": {
"Requesting": [
],
"AgentRequesting": [
],
"HeaderWriting": [
],
"Requested": [
],
"ResponseError": [
]
},
"Url": "/ManagementCenter.*",
"Remark": null,
"HashPattern": null,
"MaxRps": 0
},
{
"Servers": [
],
"PluginConfig": {
"Requesting": [
"configuration_website_icon"
],
"AgentRequesting": [
],
"HeaderWriting": [
],
"Requested": [
],
"ResponseError": [
]
},
"Url": "^/favicon\\.ico",
"Remark": null,
"HashPattern": null,
"MaxRps": 0
},
{
"Servers": [
{
"Url": "http://localhost:8012/",
"Weight": 0,
"MaxRps": 0
}
],
"PluginConfig": {
"Requesting": [
],
"AgentRequesting": [
],
"HeaderWriting": [
],
"Requested": [
],
"ResponseError": [
]
},
"Url": "/StudyCenter.*",
"Remark": null,
"HashPattern": null,
"MaxRps": 0
},
{
"Servers": [
{
"Url": "http://localhost:8010/",
"Weight": 0,
"MaxRps": 0
}
],
"PluginConfig": {
"Requesting": [
],
"AgentRequesting": [
],
"HeaderWriting": [
],
"Requested": [
],
"ResponseError": [
]
},
"Url": "/UserCenter.*",
"Remark": null,
"HashPattern": "",
"MaxRps": 0
},
{
"Servers": [
],
"PluginConfig": {
"Requesting": [
"configuration_static_resources"
],
"AgentRequesting": [
],
"HeaderWriting": [
],
"Requested": [
],
"ResponseError": [
]
},
"Url": "^/__system.*",
"Remark": null,
"HashPattern": null,
"MaxRps": 0
},
{
"Servers": [
{
"Url": "http://localhost:8011/",
"Weight": 0,
"MaxRps": 0
}
],
"PluginConfig": {
"Requesting": [
],
"AgentRequesting": [
],
"HeaderWriting": [
],
"Requested": [
],
"ResponseError": [
]
},
"Url": "/IoTCenter.*",
"Remark": null,
"HashPattern": null,
"MaxRps": 0
},
{
"Servers": [
{
"Url": "http://localhost:8020/",
"Weight": 0,
"MaxRps": 0
}
],
"PluginConfig": {
"Requesting": [
],
"AgentRequesting": [
],
"HeaderWriting": [
],
"Requested": [
],
"ResponseError": [
]
},
"Url": "/.*",
"Remark": null,
"HashPattern": null,
"MaxRps": 0
}
],
"PluginConfig": {
"Requesting": [
],
"AgentRequesting": [
],
"HeaderWriting": [
],
"Requested": [
],
"ResponseError": [
]
}
}

@ -3,15 +3,16 @@ using System;
namespace ApiGateway
{
class Program
internal class Program
{
static Gateway gateway;
static void Main(string[] args)
private static Gateway gateway;
private static void Main(string[] args)
{
gateway = new Gateway();
gateway.HttpOptions(o =>
{
o.Port = 80;
o.Port = 80;//http://localhost/__system/bumblebee/routes.html
o.LogToConsole = true;
o.LogLevel = BeetleX.EventArgs.LogType.Error;
});
@ -20,4 +21,4 @@ namespace ApiGateway
Console.Read();
}
}
}
}

@ -1,4 +1,6 @@
<config>
<add key="nuget.cnblogs.com" value="https://nuget.cnblogs.com/v3/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</config>
<configuration>
<config>
<add key="nuget.cnblogs.com" value="https://nuget.cnblogs.com/v3/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</config>
</configuration>

@ -1,9 +1,9 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:8088",
"applicationUrl": "http://localhost:8020",
"sslPort": 0
}
},
@ -18,10 +18,10 @@
"WebUI": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:8088",
"applicationUrl": "http://localhost:8020",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
}

@ -7,6 +7,6 @@
}
},
"AllowedHosts": "*",
"server.urls": "http://*:8088",
"server.urls": "http://*:8020",
"FrontEnd": false
}
}
Loading…
Cancel
Save