{
  "ConnectionStrings": {
    "DefaultConnection": "server=localhost;database=cnc_business;user=cnc_user;password=your_password;port=3306",
    "BusinessDbConnection": "server=localhost;database=cnc_business;user=cnc_user;password=your_password;port=3306",
    "LogDbConnection": "server=localhost;database=cnc_log;user=cnc_user;password=your_password;port=3306"
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*",
  "AppSettings": {
    "Name": "CNC Data Collection System",
    "Version": "1.0.0",
    "Environment": "Development",
    "EnableSwagger": true,
    "EnableSignalR": true,
    "DefaultCollectionInterval": 60,
    "MaxRetryAttempts": 3,
    "RetryDelaySeconds": 30,
    "DevicePingTimeoutSeconds": 5,
    "DataRetentionDays": 90,
    "EnableHealthChecks": true,
    "EnableMetrics": true,
    "JwtSettings": {
      "SecretKey": "your_super_secret_jwt_key_here",
      "Issuer": "CNC_System",
      "Audience": "CNC_WebApp",
      "ExpirationHours": 24
    },
    "EmailSettings": {
      "SmtpServer": "smtp.gmail.com",
      "SmtpPort": 587,
      "Username": "your_email@gmail.com",
      "Password": "your_app_password",
      "UseSsl": true
    },
    "SmsSettings": {
      "Provider": "Twilio",
      "AccountSid": "your_account_sid",
      "AuthToken": "your_auth_token",
      "FromNumber": "+1234567890"
    },
    "WeChatSettings": {
      "AppId": "your_wechat_app_id",
      "AppSecret": "your_wechat_app_secret",
      "AccessToken": "your_access_token"
    }
  },
  "CollectionSettings": {
    "Enabled": true,
    "IntervalSeconds": 60,
    "MaxRetryAttempts": 3,
    "RetryDelaySeconds": 30,
    "PingTimeoutSeconds": 5,
    "DataRetentionDays": 90,
    "ParallelCollections": 10,
    "EnableCompression": true,
    "BatchSize": 100
  },
  "ProductionSettings": {
    "Enabled": true,
    "CalculationIntervalMinutes": 5,
    "AutoArchiveDays": 90,
    "QualityCheckEnabled": true,
    "AnomalyDetectionEnabled": true,
    "ForecastDays": 7,
    "OeeCalculationEnabled": true
  },
  "AlarmSettings": {
    "Enabled": true,
    "AutoResolveHours": 24,
    "MaxActiveAlarms": 100,
    "NotificationEnabled": true,
    "EmailNotifications": true,
    "SmsNotifications": false,
    "WeChatNotifications": false,
    "EscalationEnabled": true,
    "EscalationIntervalMinutes": 30
  },
  "TemplateSettings": {
    "Enabled": true,
    "DefaultBrand": "FANUC",
    "ValidationEnabled": true,
    "AutoBackupEnabled": true,
    "BackupIntervalDays": 7
  },
  "RealTimeSettings": {
    "Enabled": true,
    "UpdateIntervalSeconds": 30,
    "MaxConnections": 1000,
    "HeartbeatIntervalSeconds": 60,
    "EnableCompression": true
  },
  "CacheSettings": {
    "Enabled": true,
    "Provider": "Memory",
    "ExpirationMinutes": 30,
    "SizeLimitMB": 512,
    "SlidingExpiration": true
  },
  "SecuritySettings": {
    "JwtExpirationHours": 24,
    "PasswordRequireDigit": true,
    "PasswordRequireLowercase": true,
    "PasswordRequireUppercase": true,
    "PasswordRequireNonalphanumeric": true,
    "PasswordRequiredLength": 8,
    "LoginAttemptLockout": true,
    "MaxFailedLoginAttempts": 5,
    "LockoutDurationMinutes": 15
  },
  "PerformanceSettings": {
    "EnableMetrics": true,
    "EnableProfiling": false,
    "SlowQueryThresholdMs": 1000,
    "EnableCompression": true,
    "EnableCaching": true,
    "BatchSize": 100
  }
}