{
  "manifest_version": "1.0.0",
  "template": {
    "id": "17a92e1a-2bbb-4876-a683-0c7802cd78cb",
    "slug": "openresty",
    "name": "OpenResty",
    "description": "Programmable Nginx web server with Lua APIs and health checks.",
    "url": "https://railway.com/deploy/openresty",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-openresty"
    }
  },
  "services": [
    {
      "name": "OpenResty",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-openresty"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "OpenResty",
      "description": "OpenResty listen port and Railway public-domain target.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "APP_NAME",
      "service": "OpenResty",
      "description": "Application name returned by the sample Lua API.",
      "secret": false,
      "strategy": "default",
      "default": "OpenResty on Railway"
    },
    {
      "key": "GREETING",
      "service": "OpenResty",
      "description": "Greeting returned by the sample Lua API.",
      "secret": false,
      "strategy": "default",
      "default": "Hello from OpenResty"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openresty"
      }
    },
    "cli": "railway deploy --template openresty",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "17a92e1a-2bbb-4876-a683-0c7802cd78cb",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "db0531e1-47fb-4e1e-b788-5d4edc05cabe": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-openresty/main/assets/openresty-icon.png",
                  "name": "OpenResty",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-openresty",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "OpenResty listen port and Railway public-domain target.",
                      "defaultValue": "8080"
                    },
                    "APP_NAME": {
                      "isOptional": false,
                      "description": "Application name returned by the sample Lua API.",
                      "defaultValue": "OpenResty on Railway"
                    },
                    "GREETING": {
                      "isOptional": false,
                      "description": "Greeting returned by the sample Lua API.",
                      "defaultValue": "Hello from OpenResty"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "OpenResty",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-08T23:34:35.012Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_fb87d0250c6d4140874f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      },
      {
        "name": "cleanup",
        "passed": false,
        "detail": "Railway API unreachable: The operation was aborted due to timeout"
      }
    ]
  }
}
