{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5497361f-e534-4a29-9906-260647aa130f",
    "slug": "centrifugo-or-just-updated-realtime-webs",
    "name": "Centrifugo | (Just Updated) Realtime WebSocket Server, API Key and Secrets Generated",
    "description": "Realtime WebSocket server with API key and secrets generated",
    "url": "https://railway.com/deploy/centrifugo-or-just-updated-realtime-webs",
    "upstream": {
      "image": "centrifugo/centrifugo:v6.9.7@sha256:d014d3e99e0e9e58c45e656a7ea4ab97c3f79f96c82a3614ea0f810b4dd0e461"
    }
  },
  "services": [
    {
      "name": "centrifugo",
      "source": {
        "image": "centrifugo/centrifugo:v6.9.7@sha256:d014d3e99e0e9e58c45e656a7ea4ab97c3f79f96c82a3614ea0f810b4dd0e461"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "CENTRIFUGO_ADMIN_SECRET",
      "service": "centrifugo",
      "description": "Provide a value for CENTRIFUGO_ADMIN_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CENTRIFUGO_HTTP_API_KEY",
      "service": "centrifugo",
      "description": "Provide a value for CENTRIFUGO_HTTP_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CENTRIFUGO_ADMIN_PASSWORD",
      "service": "centrifugo",
      "description": "Provide a value for CENTRIFUGO_ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CENTRIFUGO_CLIENT_TOKEN_HMAC_SECRET_KEY",
      "service": "centrifugo",
      "description": "Provide a value for CENTRIFUGO_CLIENT_TOKEN_HMAC_SECRET_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "centrifugo-or-just-updated-realtime-webs"
      }
    },
    "cli": "railway deploy --template centrifugo-or-just-updated-realtime-webs",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5497361f-e534-4a29-9906-260647aa130f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "495d54bf-d355-48de-9515-59dc39849d9b": {
                  "icon": null,
                  "name": "centrifugo",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'export CENTRIFUGO_HTTP_SERVER_PORT=$PORT CENTRIFUGO_HTTP_SERVER_ADDRESS=:: CENTRIFUGO_ADMIN_ENABLED=true CENTRIFUGO_HEALTH_ENABLED=true CENTRIFUGO_CLIENT_ALLOWED_ORIGINS=\"*\" CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_ALLOW_SUBSCRIBE_FOR_CLIENT=true CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_ALLOW_PUBLISH_FOR_CLIENT=true CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_ALLOW_HISTORY_FOR_CLIENT=true CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_HISTORY_SIZE=50 CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_HISTORY_TTL=300s; exec centrifugo'",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "centrifugo/centrifugo:v6.9.7@sha256:d014d3e99e0e9e58c45e656a7ea4ab97c3f79f96c82a3614ea0f810b4dd0e461"
                  },
                  "variables": {
                    "CENTRIFUGO_ADMIN_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{CENTRIFUGO_ADMIN_SECRET}}"
                    },
                    "CENTRIFUGO_HTTP_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{CENTRIFUGO_HTTP_API_KEY}}"
                    },
                    "CENTRIFUGO_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{CENTRIFUGO_ADMIN_PASSWORD}}"
                    },
                    "CENTRIFUGO_CLIENT_TOKEN_HMAC_SECRET_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{CENTRIFUGO_CLIENT_TOKEN_HMAC_SECRET_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "centrifugo",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-10-16T16:14:45.804Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-16T15:13:43.344Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7029799214674890b5da",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 17,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "centrifugo"
  }
}
