{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0cf072ad-307e-4ed5-9761-b254fbf45643",
    "slug": "kellnr-registry",
    "name": "Kellnr",
    "description": "Private Rust crate registry with access control and backups",
    "url": "https://railway.com/deploy/kellnr-registry",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-kellnr"
    }
  },
  "services": [
    {
      "name": "kellnr",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-kellnr"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "kellnr",
      "description": "Kellnr HTTP port used by the Railway public domain.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "KELLNR_LOCAL__PORT",
      "service": "kellnr",
      "description": "Local Kellnr listener port.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "KELLNR_ORIGIN__PORT",
      "service": "kellnr",
      "description": "External HTTPS port used in generated Cargo registry URLs.",
      "secret": false,
      "strategy": "default",
      "default": "443"
    },
    {
      "key": "KELLNR_ORIGIN__HOSTNAME",
      "service": "kellnr",
      "description": "Public Railway hostname used in generated registry URLs.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "KELLNR_ORIGIN__PROTOCOL",
      "service": "kellnr",
      "description": "Public protocol; Railway terminates TLS.",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "KELLNR_SETUP__ADMIN_PWD",
      "service": "kellnr",
      "description": "Generated initial password for the admin user.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "KELLNR_REGISTRY__DATA_DIR",
      "service": "kellnr",
      "description": "Persistent SQLite, crate, index, documentation, and cache directory.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "KELLNR_SETUP__ADMIN_TOKEN",
      "service": "kellnr",
      "description": "Generated initial Cargo API token for the admin user.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "KELLNR_REGISTRY__AUTH_REQUIRED",
      "service": "kellnr",
      "description": "Requires authentication for registry operations.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "KELLNR_REGISTRY__COOKIE_SIGNING_KEY",
      "service": "kellnr",
      "description": "Persistent cookie signing key. Keep unchanged across redeployments.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "KELLNR_REGISTRY__NEW_CRATES_RESTRICTED",
      "service": "kellnr",
      "description": "Restricts creation of new crates to administrators.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "kellnr-registry"
      }
    },
    "cli": "railway deploy --template kellnr-registry",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0cf072ad-307e-4ed5-9761-b254fbf45643",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "8b21c285-8a5a-4b9a-abe3-26e58eba9ae6": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-kellnr/dfaf6bd2222ff6811779ccfcf96a40aa590a6193/assets/kellnr-icon.png",
                  "name": "kellnr",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-kellnr",
                    "commitSha": "22fbe9a98a0257c303fe5bb5e867d3476233531f",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Kellnr HTTP port used by the Railway public domain.",
                      "defaultValue": "8000"
                    },
                    "KELLNR_LOCAL__PORT": {
                      "isOptional": false,
                      "description": "Local Kellnr listener port.",
                      "defaultValue": "8000"
                    },
                    "KELLNR_ORIGIN__PORT": {
                      "isOptional": false,
                      "description": "External HTTPS port used in generated Cargo registry URLs.",
                      "defaultValue": "443"
                    },
                    "KELLNR_ORIGIN__HOSTNAME": {
                      "isOptional": false,
                      "description": "Public Railway hostname used in generated registry URLs.",
                      "defaultValue": "${{kellnr.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "KELLNR_ORIGIN__PROTOCOL": {
                      "isOptional": false,
                      "description": "Public protocol; Railway terminates TLS.",
                      "defaultValue": "https"
                    },
                    "KELLNR_SETUP__ADMIN_PWD": {
                      "isOptional": false,
                      "description": "Generated initial password for the admin user.",
                      "defaultValue": "{{KELLNR_SETUP__ADMIN_PWD}}"
                    },
                    "KELLNR_REGISTRY__DATA_DIR": {
                      "isOptional": false,
                      "description": "Persistent SQLite, crate, index, documentation, and cache directory.",
                      "defaultValue": "/data"
                    },
                    "KELLNR_SETUP__ADMIN_TOKEN": {
                      "isOptional": false,
                      "description": "Generated initial Cargo API token for the admin user.",
                      "defaultValue": "{{KELLNR_SETUP__ADMIN_TOKEN}}"
                    },
                    "KELLNR_REGISTRY__AUTH_REQUIRED": {
                      "isOptional": false,
                      "description": "Requires authentication for registry operations.",
                      "defaultValue": "true"
                    },
                    "KELLNR_REGISTRY__COOKIE_SIGNING_KEY": {
                      "isOptional": false,
                      "description": "Persistent cookie signing key. Keep unchanged across redeployments.",
                      "defaultValue": "{{KELLNR_REGISTRY__COOKIE_SIGNING_KEY}}"
                    },
                    "KELLNR_REGISTRY__NEW_CRATES_RESTRICTED": {
                      "isOptional": false,
                      "description": "Restricts creation of new crates to administrators.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  },
                  "volumeMounts": {
                    "8b21c285-8a5a-4b9a-abe3-26e58eba9ae6": {
                      "mountPath": "/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "kellnr",
      "method": "GET",
      "path": "/api/v1/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-06T18:09:36.519Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_66133fcff44944c590f4",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING"
      }
    ]
  }
}
