{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7db06755-50fb-4ac6-97e4-c44631ae42f7",
    "slug": "myip",
    "name": "MyIP",
    "description": "All-in-one IP, DNS, WebRTC leak and network diagnostics toolbox",
    "url": "https://railway.com/deploy/myip",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/myip-railway"
    }
  },
  "services": [
    {
      "name": "myip",
      "source": {
        "repo": "https://github.com/gridalpha/myip-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "myip",
      "description": "Public HTTP port for the front end",
      "secret": false,
      "strategy": "default",
      "default": "18966"
    },
    {
      "key": "LOG_LEVEL",
      "service": "myip",
      "description": "Log verbosity: debug, info, warn, error",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "BACKEND_PORT",
      "service": "myip",
      "description": "Internal API port, never published",
      "secret": false,
      "strategy": "default",
      "default": "11966"
    },
    {
      "key": "ALLOWED_DOMAINS",
      "service": "myip",
      "description": "Referer allow-list for /api",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TRUST_PROXY_HOPS",
      "service": "myip",
      "description": "Express trust-proxy hop count on Railway",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "CAIDA_AUTO_UPDATE",
      "service": "myip",
      "description": "Refresh ASN datasets daily",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MAXMIND_AUTO_UPDATE",
      "service": "myip",
      "description": "Refresh GeoLite2 daily when credentials set",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SECURITY_RATE_LIMIT",
      "service": "myip",
      "description": "API requests per client IP per 20 minutes",
      "secret": false,
      "strategy": "default",
      "default": "1200"
    },
    {
      "key": "SECURITY_DELAY_AFTER",
      "service": "myip",
      "description": "Requests per IP per hour before slowdown",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "myip",
      "description": "Health check window for a cold boot",
      "secret": false,
      "strategy": "default",
      "default": "600"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "myip"
      }
    },
    "cli": "railway deploy --template myip",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7db06755-50fb-4ac6-97e4-c44631ae42f7",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "01360886-a10e-4da3-906b-e3259c967fa3": {
                  "icon": "https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/logos/ios-logo-256.png",
                  "name": "myip",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/myip-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public HTTP port for the front end",
                      "defaultValue": "18966"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Log verbosity: debug, info, warn, error",
                      "defaultValue": "info"
                    },
                    "BACKEND_PORT": {
                      "isOptional": false,
                      "description": "Internal API port, never published",
                      "defaultValue": "11966"
                    },
                    "IPINFO_API_KEY": {
                      "isOptional": true,
                      "description": "Optional ipinfo.io token, raises quota",
                      "defaultValue": ""
                    },
                    "ALLOWED_DOMAINS": {
                      "isOptional": false,
                      "description": "Referer allow-list for /api",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TRUST_PROXY_HOPS": {
                      "isOptional": false,
                      "description": "Express trust-proxy hop count on Railway",
                      "defaultValue": "2"
                    },
                    "CAIDA_AUTO_UPDATE": {
                      "isOptional": false,
                      "description": "Refresh ASN datasets daily",
                      "defaultValue": "true"
                    },
                    "MAXMIND_ACCOUNT_ID": {
                      "isOptional": true,
                      "description": "Optional free GeoLite2 account id",
                      "defaultValue": ""
                    },
                    "MAXMIND_AUTO_UPDATE": {
                      "isOptional": false,
                      "description": "Refresh GeoLite2 daily when credentials set",
                      "defaultValue": "true"
                    },
                    "MAXMIND_LICENSE_KEY": {
                      "isOptional": true,
                      "description": "Optional free GeoLite2 license key",
                      "defaultValue": ""
                    },
                    "SECURITY_RATE_LIMIT": {
                      "isOptional": false,
                      "description": "API requests per client IP per 20 minutes",
                      "defaultValue": "1200"
                    },
                    "SECURITY_DELAY_AFTER": {
                      "isOptional": false,
                      "description": "Requests per IP per hour before slowdown",
                      "defaultValue": "1000"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Health check window for a cold boot",
                      "defaultValue": "600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:18966": {
                        "port": 18966
                      }
                    }
                  },
                  "volumeMounts": {
                    "01360886-a10e-4da3-906b-e3259c967fa3": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "myip",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-09T22:14:39.753Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T19:49:56.675Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_33d400f9c9d941e78958",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 102,
    "typical_build_seconds": 40,
    "typical_start_seconds": 20,
    "slowest_service": "myip"
  }
}
