{
  "manifest_version": "1.0.0",
  "template": {
    "id": "62bbe127-ab1f-4d0c-8ae8-f974b6c68666",
    "slug": "xbackbone",
    "name": "XBackBone",
    "description": "ShareX uploads with generated admin and backups",
    "url": "https://railway.com/deploy/xbackbone",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-xbackbone"
    }
  },
  "services": [
    {
      "name": "xbackbone",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-xbackbone"
      },
      "needs_volume": true,
      "volume_mount_path": "/config",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "xbackbone",
      "description": "Runtime timezone.",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PGID",
      "service": "xbackbone",
      "description": "LinuxServer runtime group ID.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "PORT",
      "service": "xbackbone",
      "description": "Internal Nginx HTTP port.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "PUID",
      "service": "xbackbone",
      "description": "LinuxServer runtime user ID.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "XBACKBONE_URL",
      "service": "xbackbone",
      "description": "Canonical public HTTPS URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "XBACKBONE_ADMIN_USER",
      "service": "xbackbone",
      "description": "Initial administrator username.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "XBACKBONE_ADMIN_EMAIL",
      "service": "xbackbone",
      "description": "Initial administrator email.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "XBACKBONE_ADMIN_PASSWORD",
      "service": "xbackbone",
      "description": "Generated administrator password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "xbackbone"
      }
    },
    "cli": "railway deploy --template xbackbone",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "62bbe127-ab1f-4d0c-8ae8-f974b6c68666",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "f6f54edc-9022-47cf-879d-328af3e0be91": {
                  "icon": "https://raw.githubusercontent.com/sergix44/xbackbone/1c3e8646c6cf6460b6a6a25d5b7da4769f50bcdb/core/resources/integrations/kde/icons/xbackbone-512.png",
                  "name": "xbackbone",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/login",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-xbackbone",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Runtime timezone.",
                      "defaultValue": "Etc/UTC"
                    },
                    "PGID": {
                      "isOptional": false,
                      "description": "LinuxServer runtime group ID.",
                      "defaultValue": "1000"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Internal Nginx HTTP port.",
                      "defaultValue": "80"
                    },
                    "PUID": {
                      "isOptional": false,
                      "description": "LinuxServer runtime user ID.",
                      "defaultValue": "1000"
                    },
                    "XBACKBONE_URL": {
                      "isOptional": false,
                      "description": "Canonical public HTTPS URL.",
                      "defaultValue": "https://${{xbackbone.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "XBACKBONE_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Initial administrator username.",
                      "defaultValue": "admin"
                    },
                    "XBACKBONE_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Initial administrator email.",
                      "defaultValue": "admin@example.com"
                    },
                    "XBACKBONE_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated administrator password.",
                      "defaultValue": "{{XBACKBONE_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "f6f54edc-9022-47cf-879d-328af3e0be91": {
                      "mountPath": "/config",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "xbackbone",
      "method": "GET",
      "path": "/login",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T06:08:45.515Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c7f98e8d696f4ac0803c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 38,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "xbackbone"
  }
}
