{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4ccc47ab-dedc-46a9-ac7c-3689cf5e1215",
    "slug": "readeck-reading-desk",
    "name": "Readeck reading desk",
    "description": "Private reading archive with annotations, EPUB and backup export",
    "url": "https://railway.com/deploy/readeck-reading-desk",
    "upstream": {
      "repo_url": "https://github.com/tech-progress/readeck-reading-desk"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Readeck",
      "source": {
        "repo": "https://github.com/tech-progress/readeck-reading-desk"
      },
      "needs_volume": true,
      "volume_mount_path": "/readeck",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Readeck",
      "description": "HTTP listener and public target port; do not expose SQL.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "READECK_SECRET_KEY",
      "service": "Readeck",
      "description": "Stable generated instance key, min 48 characters; retain for tokens and full export/import.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "READECK_OWNER_EMAIL",
      "service": "Readeck",
      "description": "REQUIRED owner mailbox; SMTP is not included, password reset email needs separate setup.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "READECK_ALLOWED_HOSTS",
      "service": "Readeck",
      "description": "Comma-separated approved hostnames (no ports); include Railway healthcheck host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "READECK_WORKER_NUMBER",
      "service": "Readeck",
      "description": "Two in-process extraction workers; no separate shared-volume worker.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "READECK_OWNER_PASSWORD",
      "service": "Readeck",
      "description": "Generated private initial password, min 16 characters; not reset for existing users.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "READECK_OWNER_USERNAME",
      "service": "Readeck",
      "description": "Initial private owner username; keep stable to avoid creating an additional administrator.",
      "secret": false,
      "strategy": "default",
      "default": "owner"
    },
    {
      "key": "READECK_SERVER_BASE_URL",
      "service": "Readeck",
      "description": "Canonical HTTPS origin for links and secure cookies.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "READECK_PUBLIC_SHARE_TTL",
      "service": "Readeck",
      "description": "Public bearer share-link lifetime in hours; shares are opt-in and are not authentication.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "readeck-reading-desk"
      }
    },
    "cli": "railway deploy --template readeck-reading-desk",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4ccc47ab-dedc-46a9-ac7c-3689cf5e1215",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a5351bdc-ac13-4082-8092-f30a17fffd5b": {
                  "icon": null,
                  "name": "Readeck",
                  "build": {
                    "builder": "DOCKERFILE",
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "numReplicas": 1,
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 480,
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "repo": "tech-progress/readeck-reading-desk",
                    "branch": "release-v1",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listener and public target port; do not expose SQL.",
                      "defaultValue": "8000"
                    },
                    "READECK_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Stable generated instance key, min 48 characters; retain for tokens and full export/import.",
                      "defaultValue": "{{READECK_SECRET_KEY}}"
                    },
                    "READECK_OWNER_EMAIL": {
                      "isOptional": false,
                      "description": "REQUIRED owner mailbox; SMTP is not included, password reset email needs separate setup.",
                      "defaultValue": "{{READECK_OWNER_EMAIL}}"
                    },
                    "READECK_ALLOWED_HOSTS": {
                      "isOptional": false,
                      "description": "Comma-separated approved hostnames (no ports); include Railway healthcheck host.",
                      "defaultValue": "${{Readeck.RAILWAY_PUBLIC_DOMAIN}},${{Readeck.RAILWAY_PRIVATE_DOMAIN}},healthcheck.railway.app"
                    },
                    "READECK_WORKER_NUMBER": {
                      "isOptional": false,
                      "description": "Two in-process extraction workers; no separate shared-volume worker.",
                      "defaultValue": "2"
                    },
                    "READECK_OWNER_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated private initial password, min 16 characters; not reset for existing users.",
                      "defaultValue": "{{READECK_OWNER_PASSWORD}}"
                    },
                    "READECK_OWNER_USERNAME": {
                      "isOptional": false,
                      "description": "Initial private owner username; keep stable to avoid creating an additional administrator.",
                      "defaultValue": "owner"
                    },
                    "READECK_SERVER_BASE_URL": {
                      "isOptional": false,
                      "description": "Canonical HTTPS origin for links and secure cookies.",
                      "defaultValue": "https://${{Readeck.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "READECK_PUBLIC_SHARE_TTL": {
                      "isOptional": false,
                      "description": "Public bearer share-link lifetime in hours; shares are opt-in and are not authentication.",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8000
                      }
                    }
                  },
                  "volumeMounts": {
                    "a5351bdc-ac13-4082-8092-f30a17fffd5b": {
                      "sizeMB": 5000,
                      "mountPath": "/readeck"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Readeck",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-04T22:14:51.474Z",
  "generator_version": "0.1.0"
}
