{
  "ConnectionStrings": {
    "DefaultConnection": "Host=postgres-vm-host;Database=ShadowedRealms;Username=gameserver;Password=REPLACE_IN_DOCKER",
    "Redis": "redis-vm-host:6379"
  },
  "JWT": {
    "SecretKey": "REPLACE_WITH_ENV_VARIABLE",
    "Issuer": "ShadowedRealms.API",
    "Audience": "ShadowedRealms.Players",
    "ExpiresInMinutes": 60
  },
  "AllowedOrigins": [
    "https://shadowedrealms.game",
    "https://admin.shadowedrealms.game"
  ],
  "GameSettings": {
    "MaxPlayersPerKingdom": 1500,
    "KingdomTaxRate": 0.04,
    "MaxAlliancesPerKingdom": 50,
    "FieldInterceptionEnabled": true,
    "CoalitionSystemEnabled": true
  },
  "Combat": {
    "RngVariancePercentage": 0.15,
    "CriticalEventChance": 0.02,
    "DragonSkillActivationChance": 0.15,

    "Hospital": {
      "BaseWoundedPercentage": 0.70,
      "BaseKilledPercentage": 0.30,
      "SanctumBasePercentage": 0.70,
      "SanctumVipBonus": 0.10,
      "SanctumSubscriptionBonus": 0.10,
      "SanctumCapacityMultiplier": 4.0
    },

    "TroopTiers": {
      "T1Multiplier": 1.0,
      "T2Multiplier": 1.5,
      "T3Multiplier": 2.25,
      "T4Multiplier": 3.4,
      "T5Multiplier": 5.0,
      "T6Multiplier": 7.5,
      "T7Multiplier": 11.25,
      "T8Multiplier": 16.9,
      "T9Multiplier": 25.3,
      "T10Multiplier": 38.0,
      "T11Multiplier": 57.0,
      "T12Multiplier": 85.5,
      "T13Multiplier": 128.2,
      "T14Multiplier": 192.3,
      "T15Multiplier": 288.5
    },

    "TroopStats": {
      "Infantry": {
        "BaseAttack": 100,
        "BaseDefense": 120,
        "BaseHealth": 150
      },
      "Cavalry": {
        "BaseAttack": 130,
        "BaseDefense": 100,
        "BaseHealth": 140
      },
      "Bowmen": {
        "BaseAttack": 140,
        "BaseDefense": 90,
        "BaseHealth": 120
      },
      "Siege": {
        "BaseAttack": 200,
        "BaseDefense": 80,
        "BaseHealth": 100
      }
    },

    "FieldInterception": {
      "DefenseBonus": 0.15,
      "AttackBonus": 0.05,
      "AttackerPenalty": 0.05
    },

    "RallySettings": {
      "StandardRallyMaxParticipants": 6,
      "MegaRallyCapacityMultiplier": 1.0,
      "RallyWaitTimeMinutes": 30,
      "RallyLeaderStatsSharingEnabled": true
    },

    "BattleSettings": {
      "FastPacedCombat": true,
      "BattleDurationMinutes": 3,
      "ShowDetailedCombatStats": false,
      "EnableCombatSecrecy": true,
      "PowerCalculationWeights": {
        "AttackWeight": 0.35,
        "DefenseWeight": 0.35,
        "HealthWeight": 0.30
      }
    }
  },
  "Database": {
    "MaxRetryCount": 3,
    "MaxRetryDelaySeconds": 30,
    "CommandTimeoutSeconds": 30,
    "EnableSensitiveDataLogging": false
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning",
      "ShadowedRealms": "Information",
      "ShadowedRealms.Combat": "Debug"
    }
  },
  "AllowedHosts": "*"
}