appsettings.json
3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://0.0.0.0:5000"
}
}
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore": "Warning",
"Rcs.Infrastructure.OrderedDomainEventDispatcher": "Debug"
}
},
"AppSettings": {
"ConnSql": {
"ConnectionString": "Host=localhost;Port=5432;Database=hah_rcs;Username=sa_user;Password=hu@Heng_!"
},
"Redis": {
"Host": "localhost",
"Port": "6379",
"Password": "hu@Heng_!"
},
"RabbitMq": {
"Host": "localhost",
"Port": 5672,
"VirtualHost": "/",
"Username": "guest",
"Password": "guest",
"UseSSL": false,
"Heartbeat": 60,
"PrefetchCount": 16,
"ConcurrentMessageLimit": 32,
"RetryLimit": 3,
"RetryInterval": 5
},
"Cache": {
"ExpirationTimeSeconds": 86400
},
"AllowedHosts": "*",
"Cors": {
"AllowedOrigins": [ "http://localhost:8081" ],
"AllowedMethods": [ "GET", "POST"],
"AllowedHeaders": [ "Content-Type", "Authorization" ]
},
"Mqtt": {
"Broker": "localhost",
"Port": 1883,
"ClientId": "hahrcs",
"Username": "hahrcs",
"Password": "hu@Heng_!",
"UseTls": false,
"CleanSession": true,
"KeepAlivePeriodSeconds": 60,
"ReconnectDelaySeconds": 5,
"Protocols": [
{
"ProtocolName": "VDA",
"Topic": ["connection", "state", "factsheet", "visualization"]
}
]
},
"RobotStatus": {
"RedisTtlSeconds": 60,
"EnableRedisCompression": false,
"DbSyncIntervalMs": 30000,
"DbSyncBatchSize": 100,
"EnableSmartSync": true,
"PositionChangeThreshold": 0.1,
"BatteryChangeThreshold": 1.0,
"EnableRedisPipeline": true,
"PipelineBatchSize": 50,
"PipelineFlushIntervalMs": 50,
"EnableStartupPrewarm": true,
"PrewarmMaxRobots": 1000,
"GracefulShutdown": {
"Enabled": true,
"TimeoutSeconds": 30,
"SaveSyncReportToFile": true,
"LogDetailedProgress": true
}
},
"LanYinSettings": {
"Enabled": true,
"BaseUrl": "http://172.16.41.30:9990",
"ApiKey": "",
"AuthToken": "",
"Account": "RCS",
"Password": "123456",
"TimeoutSeconds": 30,
"RetryCount": 3,
"Endpoints": {
"Login": "/user_backend/users/login/",
"GetLocations": "/map_server/locations/",
"DispatchTask": "/dispatch_server/dispatch/start/location_call/task/",
"RobotReset": "/master_server/master/fix_errors/",
"ConfirmException": "/master_server/hosts/exception/",
"CancelTask": "/dispatch_server/dispatch/task/cancel/"
},
"WebSocket": {
"WebSocketUrl": "ws://172.16.41.30:9990/websocket/",
"Topics": {
"RobotStatus": "robot_status",
"RobotInfo": "robot_info",
"RobotRealtimePath": "robot_realtime_path"
}
}
}
}
}