{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e83ae1fa-60c3-4bbf-a4bb-080df6503890",
    "slug": "an-otter-wiki",
    "name": "An Otter Wiki",
    "description": "Markdown wiki with Git history, attachments, and persistent user accounts.",
    "url": "https://railway.com/deploy/an-otter-wiki",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "otterwiki",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "app",
      "source": {
        "image": "redimp/otterwiki:2.24.1@sha256:d87a26b98d1a442b6a11d066857432d49188be51ddbb1f31dc04e3b89e86cafa"
      },
      "needs_volume": true,
      "volume_mount_path": "/app-data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "otterwiki",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OWNER_AUTH",
      "service": "otterwiki",
      "description": "Require owner authentication for every application route.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OWNER_SCOPE",
      "service": "otterwiki",
      "description": "Protect all application routes.",
      "secret": false,
      "strategy": "default",
      "default": "all"
    },
    {
      "key": "UPSTREAM_HOST",
      "service": "otterwiki",
      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPSTREAM_PORT",
      "service": "otterwiki",
      "description": "Upstream port for otterwiki. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "ACCESS_PASSWORD",
      "service": "otterwiki",
      "description": "Generated access password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "otterwiki",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "shared/round6-gateway/Dockerfile"
    },
    {
      "key": "SECRET_KEY",
      "service": "app",
      "description": "Generated secret key. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "READ_ACCESS",
      "service": "app",
      "description": "Read access for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "APPROVED"
    },
    {
      "key": "SERVER_NAME",
      "service": "app",
      "description": "Server name resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WRITE_ACCESS",
      "service": "app",
      "description": "Write access for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "APPROVED"
    },
    {
      "key": "AUTO_APPROVAL",
      "service": "app",
      "description": "Auto approval for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ADMIN_USER_EMAIL",
      "service": "app",
      "description": "Email address to use for the first administrator signup behind the gateway.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ATTACHMENT_ACCESS",
      "service": "app",
      "description": "Attachment access for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "APPROVED"
    },
    {
      "key": "EMAIL_NEEDS_CONFIRMATION",
      "service": "app",
      "description": "Email needs confirmation for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "an-otter-wiki"
      }
    },
    "cli": "railway deploy --template an-otter-wiki",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e83ae1fa-60c3-4bbf-a4bb-080df6503890",
            "serializedConfig": {
              "services": {
                "7c8476f0-c149-5fb1-b97e-a4089297a111": {
                  "name": "otterwiki",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "shared/round6-gateway/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8080"
                    },
                    "OWNER_AUTH": {
                      "isOptional": false,
                      "description": "Require owner authentication for every application route.",
                      "defaultValue": "true"
                    },
                    "OWNER_SCOPE": {
                      "isOptional": false,
                      "description": "Protect all application routes.",
                      "defaultValue": "all"
                    },
                    "UPSTREAM_HOST": {
                      "isOptional": false,
                      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{app.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_PORT": {
                      "isOptional": false,
                      "description": "Upstream port for otterwiki. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "80"
                    },
                    "ACCESS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated access password. Keep private and preserve with backups.",
                      "defaultValue": "{{ACCESS_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "shared/round6-gateway/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {}
                },
                "dd98fa4d-f401-57a0-8993-3425217a36b0": {
                  "name": "app",
                  "deploy": {
                    "requiredMountPath": "/app-data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redimp/otterwiki:2.24.1@sha256:d87a26b98d1a442b6a11d066857432d49188be51ddbb1f31dc04e3b89e86cafa"
                  },
                  "variables": {
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Generated secret key. Keep private and preserve with backups.",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "READ_ACCESS": {
                      "isOptional": false,
                      "description": "Read access for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "APPROVED"
                    },
                    "SERVER_NAME": {
                      "isOptional": false,
                      "description": "Server name resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{otterwiki.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "WRITE_ACCESS": {
                      "isOptional": false,
                      "description": "Write access for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "APPROVED"
                    },
                    "AUTO_APPROVAL": {
                      "isOptional": false,
                      "description": "Auto approval for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "false"
                    },
                    "ADMIN_USER_EMAIL": {
                      "isOptional": false,
                      "description": "Email address to use for the first administrator signup behind the gateway.",
                      "defaultValue": "{{ADMIN_USER_EMAIL}}"
                    },
                    "ATTACHMENT_ACCESS": {
                      "isOptional": false,
                      "description": "Attachment access for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "APPROVED"
                    },
                    "EMAIL_NEEDS_CONFIRMATION": {
                      "isOptional": false,
                      "description": "Email needs confirmation for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "4b24c0ed-23b9-5266-8a2a-618cbc172781": {
                      "mountPath": "/app-data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "otterwiki",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0"
}
