{
  "manifest_version": "1.0.0",
  "template": {
    "id": "29525698-6f10-47dc-8493-916d221cbd9a",
    "slug": "html-hoster",
    "name": "html-hoster",
    "description": "Publish static HTML pages via REST API or AI agent.",
    "url": "https://railway.com/deploy/html-hoster",
    "upstream": {
      "repo_url": "https://github.com/codebyant/html-hoster"
    }
  },
  "services": [
    {
      "name": "html-hoster",
      "source": {
        "repo": "https://github.com/codebyant/html-hoster"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "html-hoster",
      "description": "HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "API_KEY",
      "service": "html-hoster",
      "description": "Bearer token for all write routes",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_ENV",
      "service": "html-hoster",
      "description": "App mode: development | demo | production (default)",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "S3_BUCKET",
      "service": "html-hoster",
      "description": "Bucket name (required for s3)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "html-hoster",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "html-hoster",
      "description": "Custom endpoint (MinIO, R2, non-AWS)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_DRIVER",
      "service": "html-hoster",
      "description": "local or s3",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    },
    {
      "key": "PUBLIC_BASE_URL",
      "service": "html-hoster",
      "description": "Base URL returned in responses",
      "secret": false,
      "strategy": "default",
      "default": "http://change-this-with-generated-public-url-later:3000"
    },
    {
      "key": "MAX_HTML_SIZE_MB",
      "service": "html-hoster",
      "description": "Server",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "html-hoster",
      "description": "Access key (required for s3)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "html-hoster",
      "description": "Secret key (required for s3)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "html-hoster"
      }
    },
    "cli": "railway deploy --template html-hoster",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "29525698-6f10-47dc-8493-916d221cbd9a",
            "serializedConfig": {
              "buckets": {
                "eac42616-548e-4d10-8413-9e62e254a24b": {
                  "name": "Bucket"
                }
              },
              "services": {
                "41454abc-09a8-4507-a579-b3ecdea966c8": {
                  "icon": "https://raw.githubusercontent.com/codebyant/html-hoster/refs/heads/main/public/assets/logo.svg",
                  "name": "html-hoster",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "repo": "codebyant/html-hoster",
                    "branch": null,
                    "rootDirectory": "/apps/api"
                  },
                  "variables": {
                    "PORT": {
                      "description": "HTTP port",
                      "defaultValue": "3000"
                    },
                    "API_KEY": {
                      "description": "Bearer token for all write routes",
                      "defaultValue": "{{API_KEY}}"
                    },
                    "APP_ENV": {
                      "description": "App mode: development | demo | production (default)",
                      "defaultValue": "production"
                    },
                    "S3_BUCKET": {
                      "description": "Bucket name (required for s3)",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "S3_REGION": {
                      "description": "Bucket region",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "S3_ENDPOINT": {
                      "description": "Custom endpoint (MinIO, R2, non-AWS)",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "STORAGE_DRIVER": {
                      "description": "local or s3",
                      "defaultValue": "s3"
                    },
                    "PUBLIC_BASE_URL": {
                      "description": "Base URL returned in responses",
                      "defaultValue": "http://change-this-with-generated-public-url-later:3000"
                    },
                    "MAX_HTML_SIZE_MB": {
                      "description": "Server",
                      "defaultValue": "10"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "description": "Access key (required for s3)",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "description": "Secret key (required for s3)",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "html-hoster",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T08:48:14.335Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_a0347cd309b64437b191",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 133,
    "typical_build_seconds": 71,
    "typical_start_seconds": 10,
    "slowest_service": "html-hoster"
  }
}
