{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d4b53059-9901-4838-a313-a93c1df610b2",
    "slug": "unthread-webhook-server",
    "name": "Unthread — Webhook Server",
    "description": "Reliable Node.js webhook server for Unthread.io events. 🎫⚡",
    "url": "https://railway.com/deploy/unthread-webhook-server",
    "upstream": {
      "image": "wgtechlabs/unthread-webhook-server"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Redis (Webhook)",
      "source": {
        "image": "bitnami/redis:7.2.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/bitnami",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "Unthread Webhook Server",
      "source": {
        "image": "wgtechlabs/unthread-webhook-server"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis (Webhook)",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis (Webhook)",
      "description": "Port to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis (Webhook)",
      "description": "Default user to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis (Webhook)",
      "description": "URL to connect to Redis over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis (Webhook)",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis (Webhook)",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Redis (Webhook)",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis (Webhook)",
      "description": "Public URL to connect to Redis, needed for the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_RDB_POLICY",
      "service": "Redis (Webhook)",
      "description": "Set a RDB snapshot policy.",
      "secret": false,
      "strategy": "default",
      "default": "3600#1 300#100 60#10000"
    },
    {
      "key": "REDIS_AOF_ENABLED",
      "service": "Redis (Webhook)",
      "description": "Disable writing to AOF file.",
      "secret": false,
      "strategy": "default",
      "default": "no"
    },
    {
      "key": "RAILWAY_RUN_AS_ROOT",
      "service": "Redis (Webhook)",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "Unthread Webhook Server",
      "description": "Server port for webhook endpoints",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NODE_ENV",
      "service": "Unthread Webhook Server",
      "description": "Environment mode (keep as production for Railway)",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "Unthread Webhook Server",
      "description": "Auto-configured Redis for webhook event storage",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TARGET_PLATFORM",
      "service": "Unthread Webhook Server",
      "description": "Platform integration: \"discord\" or \"telegram\" - REQUIRED",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "UNTHREAD_WEBHOOK_SECRET",
      "service": "Unthread Webhook Server",
      "description": "Webhook secret from Unthread dashboard - REQUIRED",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "unthread-webhook-server"
      }
    },
    "cli": "railway deploy --template unthread-webhook-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d4b53059-9901-4838-a313-a93c1df610b2",
            "serializedConfig": {
              "services": {
                "a176b40c-1e7e-466a-a596-7ae591a48166": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis (Webhook)",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/bitnami"
                  },
                  "source": {
                    "image": "bitnami/redis:7.2.5"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{ RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Redis.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default user to connect to Redis.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Redis over the private network.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:6379"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis.",
                      "defaultValue": "${{ REDIS_PASSWORD }}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "0"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Public URL to connect to Redis, needed for the Data panel.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    },
                    "REDIS_RDB_POLICY": {
                      "description": "Set a RDB snapshot policy.",
                      "defaultValue": "3600#1 300#100 60#10000"
                    },
                    "REDIS_AOF_ENABLED": {
                      "description": "Disable writing to AOF file.",
                      "defaultValue": "no"
                    },
                    "RAILWAY_RUN_AS_ROOT": {
                      "isOptional": false,
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "a176b40c-1e7e-466a-a596-7ae591a48166": {
                      "mountPath": "/bitnami"
                    }
                  }
                },
                "cf8427cf-4848-46f4-89ca-fbe8af6fe0de": {
                  "name": "Unthread Webhook Server",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "wgtechlabs/unthread-webhook-server"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Server port for webhook endpoints",
                      "defaultValue": "3000"
                    },
                    "NODE_ENV": {
                      "isOptional": true,
                      "description": "Environment mode (keep as production for Railway)",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "Auto-configured Redis for webhook event storage",
                      "defaultValue": "${{Redis (Webhook).REDIS_URL}}"
                    },
                    "TARGET_PLATFORM": {
                      "description": "Platform integration: \"discord\" or \"telegram\" - REQUIRED",
                      "defaultValue": "{{TARGET_PLATFORM}}"
                    },
                    "UNTHREAD_WEBHOOK_SECRET": {
                      "description": "Webhook secret from Unthread dashboard - REQUIRED",
                      "defaultValue": "{{UNTHREAD_WEBHOOK_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Unthread Webhook Server",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
