appsettings.Development.json 4.36 KB
{
  "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"
        }
      }
    }
  }
}