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