appsettings.Development.json
4.36 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"Serilog": {
"Using": ["Serilog.Sinks.Console"],
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore": "Warning",
"System": "Information"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff}] [{Level:u3}] [{SourceContext}] {Message:lj}{NewLine}{Exception}"
}
}
],
"Enrich": ["FromLogContext", "WithMachineName", "WithThreadId"]
},
"AppSettings": {
"ExternalBaseUrl": "http://localhost:5000",
"ConnSql": {
"ConnectionString": "Host=localhost;Port=5432;Database=hah_rcs;Username=sa_user;Password=hu@Heng_!"
},
"Redis": {
"Host": "localhost",
"Port": "6379",
"Password": "hu@Heng_!",
"KeyPrefixes": {
"VdaPath": "rcs:vda:path",
"Robot": "rcs:robot",
"RobotStatusSuffix": "status",
"RobotLocationSuffix": "location",
"RobotBasicSuffix": "basic",
"RobotsSet": "rcs:robots",
"RobotsOnlineSet": "rcs:robots:online",
"RobotsIdleSet": "rcs:robots:idle",
"Map": "rcs:map",
"MapList": "rcs:maps",
"MapNodeIndexSuffix": "nodes",
"MqttHeaderSuffix": "revice-headers",
"NodeLockPrefix": "rcs:lock:node",
"EdgeLockPrefix": "rcs:lock:edge",
"RobotLockResourcesPrefix": "rcs:lock:robot",
"RobotLockNodesSuffix": "nodes",
"RobotLockEdgesSuffix": "edges"
}
},
"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/",
"AddLocationType":"/map_server/locations/location_type/",
"GetLocationTypes":"/map_server/locations/location_type/",
"RobotPause":"/master_server/slave_manage/slave/pause/",
"RobotUnPause":"/master_server/slave_manage/slave/continue/",
"RelocateRobot": "/master_server/slave_manage/scene/switch/"
},
"WebSocket": {
"Enabled": true,
"WebSocketUrl": "ws://172.16.41.30:9990/websocket/",
"Topics": {
"RobotStatus": "robot_status",
"RobotInfo": "robot_info",
"RobotRealtimePath": "robot_realtime_path"
}
}
}
}
}