{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1a5a0b47-4419-438d-bb49-0175d3ff9980",
    "slug": "chibisafe",
    "name": "Chibisafe",
    "description": "File and image sharing with a web dashboard and persistent upload storage.",
    "url": "https://railway.com/deploy/chibisafe",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "web",
      "source": {
        "image": "chibisafe/chibisafe:v6.5.5@sha256:836467a50792b08c29d90e32447a1480208723751e8a0f7ecd7ede17fe393ea3"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "chibisafe",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "BASE_API_URL",
      "service": "web",
      "description": "Base api url 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": "HOST",
      "service": "chibisafe",
      "description": "HTTP bind address. Keep 0.0.0.0 so Railway can reach the service.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PORT",
      "service": "chibisafe",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "HOSTNAME",
      "service": "chibisafe",
      "description": "Application bind address. Keep 0.0.0.0 for container networking.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "WEB_HOST",
      "service": "chibisafe",
      "description": "Web 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": "ADMIN_PASSWORD",
      "service": "chibisafe",
      "description": "Generated admin password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "chibisafe",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/round9/chibisafe/Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chibisafe"
      }
    },
    "cli": "railway deploy --template chibisafe",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1a5a0b47-4419-438d-bb49-0175d3ff9980",
            "serializedConfig": {
              "services": {
                "1a33f58f-ad22-5fc9-a476-31087ed98911": {
                  "name": "web",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chibisafe/chibisafe:v6.5.5@sha256:836467a50792b08c29d90e32447a1480208723751e8a0f7ecd7ede17fe393ea3"
                  },
                  "variables": {
                    "BASE_API_URL": {
                      "isOptional": false,
                      "description": "Base api url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "http://${{chibisafe.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                },
                "f5cddb08-5420-53d2-9f21-e84486b74241": {
                  "name": "chibisafe",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/round9/chibisafe/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "requiredMountPath": "/data",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "HOST": {
                      "isOptional": false,
                      "description": "HTTP bind address. Keep 0.0.0.0 so Railway can reach the service.",
                      "defaultValue": "0.0.0.0"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8000"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Application bind address. Keep 0.0.0.0 for container networking.",
                      "defaultValue": "0.0.0.0"
                    },
                    "WEB_HOST": {
                      "isOptional": false,
                      "description": "Web host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{web.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated admin password. Keep private and preserve with backups.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/round9/chibisafe/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "a04ae3e6-fc67-5279-83f6-e00ff2dc9c61": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "chibisafe",
      "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",
  "status": "degraded",
  "validated_at": "2026-09-19T08:05:35.505Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_6778c77599dd4231a1d2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING,SUCCESS"
      }
    ]
  }
}
