{
  "manifest_version": "1.0.0",
  "template": {
    "id": "390dda44-ef24-4540-8919-da211d663be0",
    "slug": "fast-relay",
    "name": "FastRelay",
    "description": "Fast HTTP proxy with Gist config, smart routing, and custom responses",
    "url": "https://railway.com/deploy/fast-relay",
    "upstream": {
      "repo_url": "https://github.com/supra126/fast-relay"
    }
  },
  "services": [
    {
      "name": "fast-relay",
      "source": {
        "repo": "https://github.com/supra126/fast-relay"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "HOST",
      "service": "fast-relay",
      "description": "Server host",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PORT",
      "service": "fast-relay",
      "description": "Server port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "GIST_URL",
      "service": "fast-relay",
      "description": "GitHub Gist Raw URL for route configuration (Option 1: Public Gist — example only, remove in production)",
      "secret": false,
      "strategy": "default",
      "default": "https://gist.githubusercontent.com/supra126/3f07888ef44313e66ce1ea0bfef99aea/raw/85b9c1d128d0df374c04269e72b139bd34c6666b/routes.json"
    },
    {
      "key": "LOG_LEVEL",
      "service": "fast-relay",
      "description": "Logging level for production. Options: 'error' (errors only), 'warn' (warnings + errors), 'info' (all logs). Default: 'info'. Set to 'warn' or 'error' to reduce log volume in production.",
      "secret": false,
      "strategy": "default",
      "default": "warn"
    },
    {
      "key": "BODY_LIMIT",
      "service": "fast-relay",
      "description": "Request body size limit in bytes (default: 10MB)",
      "secret": false,
      "strategy": "default",
      "default": "10485760"
    },
    {
      "key": "RATE_LIMIT_MAX",
      "service": "fast-relay",
      "description": "Rate limit maximum requests per time window",
      "secret": false,
      "strategy": "default",
      "default": "100"
    },
    {
      "key": "GIST_AUTO_RESTART",
      "service": "fast-relay",
      "description": "Auto-restart when config changes detected",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RATE_LIMIT_WINDOW",
      "service": "fast-relay",
      "description": "Rate limit time window",
      "secret": false,
      "strategy": "default",
      "default": "1 minute"
    },
    {
      "key": "GIST_FETCH_TIMEOUT",
      "service": "fast-relay",
      "description": "Gist API request timeout (milliseconds)",
      "secret": false,
      "strategy": "default",
      "default": "10000"
    },
    {
      "key": "GIST_SYNC_INTERVAL",
      "service": "fast-relay",
      "description": "Configuration sync interval (seconds, 0=disabled)",
      "secret": false,
      "strategy": "default",
      "default": "300"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "fast-relay"
      }
    },
    "cli": "railway deploy --template fast-relay",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "390dda44-ef24-4540-8919-da211d663be0",
            "serializedConfig": {
              "services": {
                "99ea72d9-d819-48b4-833a-22dd8fac5529": {
                  "name": "fast-relay",
                  "source": {
                    "repo": "supra126/fast-relay",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "HOST": {
                      "isOptional": true,
                      "description": "Server host",
                      "defaultValue": "0.0.0.0"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "Server port",
                      "defaultValue": "8080"
                    },
                    "GIST_ID": {
                      "isOptional": true,
                      "description": "Private Gist ID (Option 2: Private Gist, requires GITHUB_TOKEN)",
                      "defaultValue": ""
                    },
                    "API_KEYS": {
                      "isOptional": true,
                      "description": "API authentication keys (single or multiple, comma-separated)",
                      "defaultValue": ""
                    },
                    "GIST_URL": {
                      "isOptional": true,
                      "description": "GitHub Gist Raw URL for route configuration (Option 1: Public Gist — example only, remove in production)",
                      "defaultValue": "https://gist.githubusercontent.com/supra126/3f07888ef44313e66ce1ea0bfef99aea/raw/85b9c1d128d0df374c04269e72b139bd34c6666b/routes.json"
                    },
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Logging level for production. Options: 'error' (errors only), 'warn' (warnings + errors), 'info' (all logs). Default: 'info'. Set to 'warn' or 'error' to reduce log volume in production.",
                      "defaultValue": "warn"
                    },
                    "BODY_LIMIT": {
                      "isOptional": true,
                      "description": "Request body size limit in bytes (default: 10MB)",
                      "defaultValue": "10485760"
                    },
                    "CORS_ORIGINS": {
                      "isOptional": true,
                      "description": "CORS allowed origins (comma-separated)",
                      "defaultValue": ""
                    },
                    "GITHUB_TOKEN": {
                      "isOptional": true,
                      "description": "GitHub Personal Access Token with 'gist' scope (only for private Gist)",
                      "defaultValue": ""
                    },
                    "RATE_LIMIT_MAX": {
                      "isOptional": true,
                      "description": "Rate limit maximum requests per time window",
                      "defaultValue": "100"
                    },
                    "ALLOWED_DOMAINS": {
                      "isOptional": true,
                      "description": "Whitelist of allowed proxy target domains (prevents SSRF)",
                      "defaultValue": ""
                    },
                    "GIST_AUTO_RESTART": {
                      "isOptional": true,
                      "description": "Auto-restart when config changes detected",
                      "defaultValue": "true"
                    },
                    "RATE_LIMIT_WINDOW": {
                      "isOptional": true,
                      "description": "Rate limit time window",
                      "defaultValue": "1 minute"
                    },
                    "GIST_FETCH_TIMEOUT": {
                      "isOptional": true,
                      "description": "Gist API request timeout (milliseconds)",
                      "defaultValue": "10000"
                    },
                    "GIST_SYNC_INTERVAL": {
                      "isOptional": true,
                      "description": "Configuration sync interval (seconds, 0=disabled)",
                      "defaultValue": "300"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T02:17:19.868Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ffb3c8002c1b4d4080bf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 135,
    "typical_build_seconds": 66,
    "typical_start_seconds": 10,
    "slowest_service": "fast-relay"
  }
}
