{
  "manifest_version": "1.0.0",
  "template": {
    "id": "64dc0b87-8d32-4743-94bf-ccbcf5f0be9e",
    "slug": "teleproxy-mtproxy",
    "name": "Teleproxy [Updated Sep '26]",
    "description": "Teleproxy — Self-Hosted MTProto Proxy for Telegram, Fake-TLS DPI Resistant",
    "url": "https://railway.com/deploy/teleproxy-mtproxy",
    "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",
      "tcp_ports": [
        443
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "SECRET",
      "service": "teleproxy",
      "description": "Hex-encoded proxy secret clients use to connect. Auto-generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORKERS",
      "service": "teleproxy",
      "description": "Number of worker processes handling connections.",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "EE_DOMAIN",
      "service": "teleproxy",
      "description": "The domain your proxy's fake-TLS handshake camouflages as. Any real HTTPS domain works.",
      "secret": false,
      "strategy": "default",
      "default": "www.microsoft.com"
    },
    {
      "key": "DIRECT_MODE",
      "service": "teleproxy",
      "description": "If true, connects directly to Telegram DCs without the ME relay. Incompatible with PROXY_TAG.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "teleproxy-mtproxy"
      }
    },
    "cli": "railway deploy --template teleproxy-mtproxy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "64dc0b87-8d32-4743-94bf-ccbcf5f0be9e",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "7c36f29d-4f92-4437-b554-ad3e65ad4fc6": {
                  "icon": "https://teleproxy.github.io/assets/logo.svg",
                  "name": "teleproxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/teleproxy/teleproxy:latest"
                  },
                  "variables": {
                    "SECRET": {
                      "isOptional": false,
                      "description": "Hex-encoded proxy secret clients use to connect. Auto-generated.",
                      "defaultValue": "{{SECRET}}"
                    },
                    "WORKERS": {
                      "isOptional": false,
                      "description": "Number of worker processes handling connections.",
                      "defaultValue": "4"
                    },
                    "EE_DOMAIN": {
                      "isOptional": false,
                      "description": "The domain your proxy's fake-TLS handshake camouflages as. Any real HTTPS domain works.",
                      "defaultValue": "www.microsoft.com"
                    },
                    "PROXY_TAG": {
                      "isOptional": true,
                      "description": "Optional MTProto promotion tag (advertises a channel via the proxy link). Leave blank unless you have one.",
                      "defaultValue": ""
                    },
                    "DIRECT_MODE": {
                      "isOptional": false,
                      "description": "If true, connects directly to Telegram DCs without the ME relay. Incompatible with PROXY_TAG.",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "443": {}
                    }
                  },
                  "volumeMounts": {
                    "7c36f29d-4f92-4437-b554-ad3e65ad4fc6": {
                      "mountPath": "/opt/teleproxy/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T16:14:44.435Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-11T14:30:50.053Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_facb356317754179b429",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 18,
    "typical_build_seconds": 5,
    "typical_start_seconds": 0,
    "slowest_service": "teleproxy"
  }
}
