{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning",
      "Microsoft.EntityFrameworkCore": "Warning",
      "Microsoft.EntityFrameworkCore.Database.Command": "Information",
      "ExperionCrawler.Infrastructure.OpcUa.ExperionHistoryService": "Warning"
    },
    "Console": {
      "LogLevel": {
        "Default": "Information",
        "Microsoft.EntityFrameworkCore": "Warning",
        "ExperionCrawler.Infrastructure.OpcUa.ExperionHistoryService": "Warning"
      }
    }
  },
  "AllowedHosts": "*",
  "Cors": {
    "AllowedOrigins": [ "*" ]
  },
  "ConnectionStrings": {
    "DefaultConnection": "Host=localhost;Port=5432;Database=iiot_platform;Username=postgres;Password=postgres",
    "ExperionDbConnection": "Host=localhost;Port=5432;Database=postgres;Username=postgres;Password=postgres;Trust Server Certificate=true;Include Error Detail=true"
  },
  "OpcUaServer": {
    "Port": 4841,
    "EnableSecurity": false,
    "AllowAnonymous": true,
    "AllowedUsernames": [ "mngr" ],
    "AllowedPasswords": [ "mngr" ]
  },
  "PidControllers": {
    "Enabled": true
  },
  "Experion": {
    "Default": {
      "ServerHostName": "192.168.0.20",
      "Port": 4840,
      "ClientHostName": "dbsvr",
      "UserName": "mngr",
      "Password": "mngr"
    }
  },
  "Feedforward": {
    "SimOverrideEnabled": true
  },
  "Fast": {
    "MaxConcurrentSessions": 3,
    "MaxRowsPerSession": 5000000,
    "FlushIntervalMs": 2000
  },
  "McpServer": {
    "WorkingDirectory": "../../mcp-server"
  },
  "PromptsDirectory": "../../prompts",
  "DocBrowser": {
    "Root": "",
    "MaxTextBytes": 2097152,
    "MaxUploadBytes": 52428800
  },
  "Kb": {
    "QdrantUrl": "http://localhost:6333",
    "VectorSize": 768,
    "StorageRoot": "../../storage/kb",
    "AdminInitialPassword": "admin",
    "AdminSessionMinutes": 60,
    "WorkerPollIntervalSeconds": 2,
    "MaxAttempts": 3,
    "Throttle": {
      "MaxFailAttempts": 5,
      "FailWindowMinutes": 5,
      "LockoutMinutes": 15
    }
  },
  "Kestrel": {
    "Endpoints": {
      "Http": {
        "Url": "http://0.0.0.0:5000"
      }
    },
    "Limits": {
      "MaxRequestBodySize": 104857600
    }
  }
}
