{
    "service": "PWG (plugin.wedos.global)",
    "environment": "production",
    "host": "plugin.wedos.global",
    "services": {
        "ingest": {
            "description": "Domain registration + telemetry ingest from WP plugin.",
            "endpoints": [
                "POST /ingest/ingest.php?domain=X&origin_ip=Y",
                "POST /public/api/ingest.php  (legacy alias, same handler)"
            ]
        },
        "dashboard-data": {
            "description": "Read-side analytics for the WP plugin admin dashboard.",
            "endpoints": [
                "POST /dashboard-data/data.php?domain=X   (recommended, auto-refills cache)",
                "POST /dashboard-data/index.php?domain=X  (legacy refresh trigger)"
            ]
        },
        "subscription": {
            "description": "Subscription state, trial start, FastSpring webhook.",
            "endpoints": [
                "POST /subscription/status.php?domain=X",
                "POST /subscription/start-trial.php?domain=X&plan=standard",
                "POST /subscription/fs-webhook.php  (FastSpring → us)"
            ]
        },
        "api": {
            "description": "Public WP-facing endpoints (status, delete, cdn purge).",
            "endpoints": [
                "POST /api/status.php",
                "POST /api/wgp-delete.php",
                "POST /api/purge-cdn-cache.php"
            ]
        },
        "cdn-plugin": {
            "description": "CDN edge telemetry collector + manifest.",
            "endpoints": [
                "POST /cdn-plugin/telemetry.php",
                "GET  /cdn-plugin/data/manifest.json"
            ]
        },
        "generate-graph": {
            "description": "SVG chart generation (public, signed URLs).",
            "endpoints": [
                "GET /generate-graph/?token=..."
            ]
        }
    },
    "internal_only": {
        "stargate-fetch": "ES upstream bridge (haproxy-stats + haproxy-logs).",
        "shared": "Shared library code (PDO, logger, alerts, ratelimit, etc)."
    },
    "notes": [
        "Most service directories have an .htaccess that denies HTTP access for lib/, config/, sql/ and similar subdirectories.",
        "Config files are gitignored (config.php). Examples are checked in as config.php.example."
    ]
}