{
  "ok": true,
  "name": "MLtools License Gateway PL",
  "server_time": "2026-08-30T15:02:37Z",
  "cluster": {
    "clusterName": "mltools-smarthwm",
    "nodeId": "api-pl",
    "region": "pl",
    "regionName": "Poland",
    "role": "primary-api",
    "compatibilityBridgeEnabled": false,
    "compatibilityProxy": {
      "enabled": false,
      "upstreamCount": 0,
      "upstreamBaseUrls": [],
      "fallbackToLocalOnError": true,
      "timeoutSeconds": 12,
      "forwardDownloads": false,
      "forwardUpdateFiles": false,
      "loopGuardHeader": "X-MLtools-Compatibility-Proxy"
    },
    "stateBackend": {
      "type": "postgresql",
      "mode": "shared-postgres-runtime",
      "postgresql": {
        "preflightEnabled": true,
        "required": true,
        "dsnEnv": "MLTOOLS_CLUSTER_DATABASE_URL",
        "runtimeImplementedAreas": [
          "license",
          "events",
          "spam",
          "external_chain",
          "share_settings_sync",
          "deep_sleep",
          "sync_state"
        ],
        "runtimeEnabledAreas": [
          "license",
          "events",
          "spam",
          "external_chain",
          "share_settings_sync",
          "deep_sleep",
          "sync_state"
        ],
        "runtimeRequiredAreas": [
          "license",
          "events",
          "spam",
          "external_chain",
          "share_settings_sync",
          "deep_sleep",
          "sync_state"
        ],
        "requiredSchemas": [
          "mltools_cluster",
          "mltools_license",
          "mltools_events",
          "mltools_spam",
          "mltools_external_chain",
          "mltools_share_settings_sync",
          "mltools_deep_sleep",
          "mltools_sync_state"
        ]
      }
    }
  },
  "public_base_url": "http://api.smarthwm.fun:8088",
  "runtime": {
    "appDir": "/opt/mltools-license-server",
    "stateRoot": "/var/lib/mltools/license-server/api-pl",
    "driveSnapshotEnabled": false,
    "driveSnapshotMinIntervalSeconds": 60.0
  },
  "mltoolsTransportTransition": {
    "configured": false,
    "mode": "disabled",
    "ready": true,
    "trustedProxyCount": 2
  },
  "smartHwmEntitlement": {
    "baseUrl": "https://smarthwm.fun",
    "configured": true,
    "leaseSeconds": 2700,
    "mode": "shadow",
    "ready": true,
    "timeoutSeconds": 3.0
  },
  "smartHwmSensitiveSnapshots": {
    "baseUrl": "",
    "configured": true,
    "enabled": false,
    "path": "/internal/v1/sensitive-session-snapshots",
    "ready": true,
    "runtime": {
      "attempted": 0,
      "failed": 0,
      "lastAt": "2026-08-30T15:02:29Z",
      "lastHttpStatus": 0,
      "lastOutcome": "disabled",
      "skipped": 23,
      "succeeded": 0
    },
    "timeoutSeconds": 3.0
  },
  "runes": {
    "serverBuild": "2026-07-18-runes-coordinate-windows-v23",
    "coordinateDisplayIndexMax": 3,
    "coordinateIndexOrder": "visualKeyLeft,visualKeyTop"
  },
  "api": {
    "primary": {
      "license_check": "/api/v1/license/check",
      "events": "/api/v1/events"
    },
    "json_aliases_for_owned_clients": {
      "license_check": "/bot/result/",
      "versions": "/bot/getversions/",
      "info": "/bot/getinfo/",
      "errors": "/bot/error/",
      "botwork": "/bot/botwork/",
      "telegram": "/bot/tgbotsend/",
      "mail": "/bot/mailsend/",
      "uploads": "/bot/upload/",
      "flags_sync": "/bot/flags-sync/",
      "account_stats_sync": "/bot/account-stats-sync/",
      "expedition_map_sync": "/bot/expedition-map-sync/",
      "runes_map_sync": "/bot/runes-map-sync/",
      "farm_targets_sync": "/bot/farm-targets-sync/",
      "spam_command": "/bot/spam-command/",
      "spam_status": "/bot/spam-status/",
      "spam_cancel": "/bot/spam-cancel/",
      "spam_sync": "/bot/spam-sync/",
      "spam_commands": "/bot/spam-commands/",
      "external_chain_command": "/bot/external-chain-command/",
      "external_chain_status": "/bot/external-chain-status/",
      "external_chain_cancel": "/bot/external-chain-cancel/",
      "external_chain_sync": "/bot/external-chain-sync/",
      "deep_sleep_sync": "/bot/deep-sleep-sync/",
      "deep_sleep_command": "/bot/deep-sleep-command/",
      "deep_sleep_status": "/bot/deep-sleep-status/",
      "share_settings_sync_command": "/bot/share-settings-sync-command/",
      "share_settings_sync_poll": "/bot/share-settings-sync-poll/",
      "news": "/bot/getnews/"
    }
  },
  "compatibility": {
    "legacyProtocol": "Supports the packed PackService protocol used by your MLtools client plus the open /api/v1/* JSON API.",
    "proxy": {
      "enabled": false,
      "upstreamCount": 0,
      "upstreamBaseUrls": [],
      "fallbackToLocalOnError": true,
      "timeoutSeconds": 12,
      "forwardDownloads": false,
      "forwardUpdateFiles": false,
      "loopGuardHeader": "X-MLtools-Compatibility-Proxy"
    },
    "centralUploads": {
      "enabled": false,
      "originNodeId": "api-pl",
      "originBaseUrl": "http://api.smarthwm.fun:8088",
      "paths": [
        "/bot/upload",
        "/api/v1/uploads",
        "/bot/error"
      ],
      "timeoutSeconds": 60,
      "fallbackToLocalOnError": false,
      "loopGuardHeader": "X-MLtools-Central-Upload-Forward"
    }
  }
}