{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5d3577a0-594d-4afd-aef3-c7f9fcce203a",
    "slug": "teleproxy",
    "name": "Teleproxy",
    "description": "Self-hosted Telegram MTProxy with advanced Fake-TLS and anti-DPI features",
    "url": "https://railway.com/deploy/teleproxy",
    "upstream": {
      "image": "ghcr.io/teleproxy/teleproxy:latest"
    }
  },
  "services": [
    {
      "name": "teleproxy",
      "source": {
        "image": "ghcr.io/teleproxy/teleproxy:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/teleproxy/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "SECRET",
      "service": "teleproxy",
      "description": "Provide a value for SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORKERS",
      "service": "teleproxy",
      "description": "Provide a value for WORKERS.",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "EE_DOMAIN",
      "service": "teleproxy",
      "description": "Provide a value for EE_DOMAIN.",
      "secret": false,
      "strategy": "default",
      "default": "www.microsoft.com"
    },
    {
      "key": "DIRECT_MODE",
      "service": "teleproxy",
      "description": "Provide a value for DIRECT_MODE.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "teleproxy"
      }
    },
    "cli": "railway deploy --template teleproxy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5d3577a0-594d-4afd-aef3-c7f9fcce203a",
            "serializedConfig": {
              "services": {
                "29b1d5d5-b096-41a4-97ce-73094c8cab1f": {
                  "icon": "https://teleproxy.github.io/assets/logo.svg",
                  "name": "teleproxy",
                  "source": {
                    "image": "ghcr.io/teleproxy/teleproxy:latest"
                  },
                  "variables": {
                    "SECRET": {
                      "defaultValue": "{{SECRET}}"
                    },
                    "WORKERS": {
                      "defaultValue": "4"
                    },
                    "EE_DOMAIN": {
                      "defaultValue": "www.microsoft.com"
                    },
                    "PROXY_TAG": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "DIRECT_MODE": {
                      "defaultValue": "false"
                    }
                  },
                  "volumeMounts": {
                    "29b1d5d5-b096-41a4-97ce-73094c8cab1f": {
                      "mountPath": "/opt/teleproxy/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-09T01:05:30.658Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_5ead113f915546bab87e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": false,
        "detail": "1 service(s) crashed within 30s"
      }
    ]
  }
}
