{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f004bcb4-d1f6-459b-b148-485cbbeaccd9",
    "slug": "public-blob-proxy",
    "name": "Blob Butler",
    "description": "Run a lightweight Bun-powered proxy that exposes s3 bucket to the public",
    "url": "https://railway.com/deploy/public-blob-proxy",
    "upstream": {
      "repo_url": "https://github.com/byteception/blob-butler"
    }
  },
  "services": [
    {
      "name": "blob-butler",
      "source": {
        "repo": "https://github.com/byteception/blob-butler"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "S3_BUCKET",
      "service": "blob-butler",
      "description": "Railway Storage bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "blob-butler",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "blob-butler",
      "description": "Railway Storage endpoint URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "blob-butler",
      "description": "Bucket access key ID",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "blob-butler",
      "description": "Bucket secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "public-blob-proxy"
      }
    },
    "cli": "railway deploy --template public-blob-proxy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f004bcb4-d1f6-459b-b148-485cbbeaccd9",
            "serializedConfig": {
              "buckets": {
                "097db521-8743-406d-aaff-a789910ae583": {
                  "name": "blob"
                }
              },
              "services": {
                "63a78f77-1470-419d-b774-6ca99c14d328": {
                  "icon": "https://devicons.railway.app/bun",
                  "name": "blob-butler",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/byteception/blob-butler",
                    "rootDirectory": null
                  },
                  "variables": {
                    "S3_BUCKET": {
                      "description": "Railway Storage bucket name",
                      "defaultValue": "${{blob.BUCKET}}"
                    },
                    "S3_REGION": {
                      "description": "Bucket region",
                      "defaultValue": "${{blob.REGION}}"
                    },
                    "S3_ENDPOINT": {
                      "description": "Railway Storage endpoint URL",
                      "defaultValue": "${{blob.ENDPOINT}}"
                    },
                    "CACHE_MAX_AGE": {
                      "isOptional": true,
                      "description": "Cache-Control max-age in seconds (default: 86400 = 24 hours)",
                      "defaultValue": ""
                    },
                    "S3_ACCESS_KEY_ID": {
                      "description": "Bucket access key ID",
                      "defaultValue": "${{blob.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "description": "Bucket secret access key",
                      "defaultValue": "${{blob.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "blob-butler",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T21:11:16.885Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_82eb566b5ed141d9a333",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
