{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7b714a9e-56a6-4d55-b1f9-9a7de9b85ec3",
    "slug": "telegram-proxy",
    "name": "Telegram Proxy",
    "description": "Zero-config Telegram MTProto Proxy Server. Secure, fast, and reliable.",
    "url": "https://railway.com/deploy/telegram-proxy",
    "upstream": {
      "image": "telegrammessenger/proxy:latest"
    }
  },
  "services": [
    {
      "name": "proxy",
      "source": {
        "image": "telegrammessenger/proxy:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        443
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "SECRET",
      "service": "proxy",
      "description": "Provide a value for SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORKERS",
      "service": "proxy",
      "description": "Provide a value for WORKERS.",
      "secret": false,
      "strategy": "default",
      "default": "8"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "telegram-proxy"
      }
    },
    "cli": "railway deploy --template telegram-proxy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7b714a9e-56a6-4d55-b1f9-9a7de9b85ec3",
            "serializedConfig": {
              "services": {
                "96985b38-1065-4844-a6b0-c188f923c588": {
                  "icon": "https://devicons.railway.app/tele",
                  "name": "proxy",
                  "deploy": {
                    "startCommand": "bash -lc 'while true; do echo \"$(date) - Server is active\"; sleep 30; done & exec /run.sh'"
                  },
                  "source": {
                    "image": "telegrammessenger/proxy:latest"
                  },
                  "variables": {
                    "TAG": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "SECRET": {
                      "defaultValue": "{{SECRET}}"
                    },
                    "WORKERS": {
                      "defaultValue": "8"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "443": {}
                    }
                  },
                  "volumeMounts": {
                    "96985b38-1065-4844-a6b0-c188f923c588": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-05T18:08:14.221Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c64c18539844432799ae",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 192,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "proxy"
  }
}
