diff --git a/simples/JT808.Gateway.SimpleServer/appsettings.json b/simples/JT808.Gateway.SimpleServer/appsettings.json new file mode 100644 index 0000000..fd59b0f --- /dev/null +++ b/simples/JT808.Gateway.SimpleServer/appsettings.json @@ -0,0 +1,29 @@ +{ + "Logging": { + "IncludeScopes": false, + "Debug": { + "LogLevel": { + "Default": "Trace" + } + }, + "Console": { + "LogLevel": { + "Default": "Trace" + } + } + }, + "JT808Configuration": { + "TcpPort": 808, + "UdpPort": 808, + "WebApiPort": 828, + "WebApiToken": "smallchi518" + }, + "RemoteServerOptions": { + "DataTransfer": [ + { + "Host": "127.0.0.1:20000", + "TerminalNos": [] + } + ] + } +} diff --git a/src/JT808.Gateway.Benchmark/JT808.Gateway.CleintBenchmark/appsettings.json b/src/JT808.Gateway.Benchmark/JT808.Gateway.CleintBenchmark/appsettings.json new file mode 100644 index 0000000..7611940 --- /dev/null +++ b/src/JT808.Gateway.Benchmark/JT808.Gateway.CleintBenchmark/appsettings.json @@ -0,0 +1,24 @@ +{ + "Logging": { + "IncludeScopes": false, + "Debug": { + "LogLevel": { + "Default": "Error" + } + }, + "Console": { + "LogLevel": { + "Default": "Error" + } + } + }, + "AllowedHosts": "*", + //"urls": "http://*:15004;", + "ClientBenchmarkOptions": { + "IP": "127.0.0.1", + "Port": 808, + "DeviceCount": 100, + "Interval": 1000, + "DeviceTemplate": 100000 //需要多台机器同时访问,那么可以根据这个避开重复终端号 100000-200000-300000 + } +} diff --git a/src/JT808.Gateway.Benchmark/JT808.Gateway.ServerBenchmark/appsettings.json b/src/JT808.Gateway.Benchmark/JT808.Gateway.ServerBenchmark/appsettings.json new file mode 100644 index 0000000..1343560 --- /dev/null +++ b/src/JT808.Gateway.Benchmark/JT808.Gateway.ServerBenchmark/appsettings.json @@ -0,0 +1,8 @@ +{ + "JT808Configuration": { + "TcpPort": 808, + "UdpPort": 808, + "MiniNumBufferSize": 102400, + "SoBacklog": 204800 + } +} diff --git a/src/JT808.Gateway.Tests/JT808.Gateway.NormalHosting/appsettings.json b/src/JT808.Gateway.Tests/JT808.Gateway.NormalHosting/appsettings.json new file mode 100644 index 0000000..8b644c5 --- /dev/null +++ b/src/JT808.Gateway.Tests/JT808.Gateway.NormalHosting/appsettings.json @@ -0,0 +1,16 @@ +{ + "JT808Configuration": { + "TcpPort": 808, + "UdpPort": 808, + "MiniNumBufferSize": 51200, + "SoBacklog": 65535 + }, + "RemoteServerOptions": { + "DataTransfer": [ + { + "Host": "127.0.0.1:20000", + "TerminalNos": [] + } + ] + } +} diff --git a/src/JT808.Gateway.Tests/JT808.Gateway.QueueHosting/appsettings.json b/src/JT808.Gateway.Tests/JT808.Gateway.QueueHosting/appsettings.json new file mode 100644 index 0000000..2cc2a42 --- /dev/null +++ b/src/JT808.Gateway.Tests/JT808.Gateway.QueueHosting/appsettings.json @@ -0,0 +1,22 @@ +{ + "JT808Configuration": { + "TcpPort": 808, + "UdpPort": 808, + "MiniNumBufferSize": 51200, + "SoBacklog": 65535 + }, + "JT808MsgProducerConfig": { + "TopicName": "JT808Msg", + "BootstrapServers": "127.0.0.1:9092" + }, + "JT808MsgReplyConsumerConfig": { + "TopicName": "JT808MsgReply", + "GroupId": "msgreply-group", + "EnableAutoCommit": true, + "BootstrapServers": "127.0.0.1:9092" + }, + "JT808SessionProducerConfig": { + "TopicName": "JT808Session", + "BootstrapServers": "127.0.0.1:9092" + } +}