{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ca3262b0-620f-4d72-b206-34f5dc9fdae2",
    "slug": "telegram-mtproxy",
    "name": "Telegram MTProxy",
    "description": "The MTProto proxy is a container that automatically sets up a proxy server",
    "url": "https://railway.com/deploy/telegram-mtproxy",
    "upstream": {
      "image": "telegrammessenger/proxy:1.4"
    }
  },
  "services": [
    {
      "name": "MTProxy",
      "source": {
        "image": "telegrammessenger/proxy:1.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        443
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "SECRET",
      "service": "MTProxy",
      "description": "Connection secret for your tg:// proxy link. Generated once and kept — without it the proxy mints a new secret on every restart and every link you have shared stops working.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "telegram-mtproxy"
      }
    },
    "cli": "railway deploy --template telegram-mtproxy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ca3262b0-620f-4d72-b206-34f5dc9fdae2",
            "serializedConfig": {
              "services": {
                "7dc1b94c-65ce-448d-b735-6f8add04d5f9": {
                  "icon": null,
                  "name": "MTProxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "telegrammessenger/proxy:1.4"
                  },
                  "variables": {
                    "SECRET": {
                      "isOptional": false,
                      "description": "Connection secret for your tg:// proxy link. Generated once and kept — without it the proxy mints a new secret on every restart and every link you have shared stops working.",
                      "defaultValue": "{{SECRET}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "443": {}
                    }
                  },
                  "volumeMounts": {
                    "7dc1b94c-65ce-448d-b735-6f8add04d5f9": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T16:59:39.093Z",
  "success_rate_30d": 0.3333,
  "validation": {
    "last_run_id": "run_b30691aac3994372b3b6",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "CRASHED"
      }
    ],
    "typical_ready_seconds": 58,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "MTProxy"
  }
}
