{
  "manifest_version": "1.0.0",
  "template": {
    "id": "02782804-4313-4c3a-aeff-5d62474aaafa",
    "slug": "ios-asspp-web",
    "name": "IOS - Asspp Web",
    "description": "Self-hosted iOS app installer and downloader with zero-trust relay.",
    "url": "https://railway.com/deploy/ios-asspp-web",
    "upstream": {
      "image": "ghcr.io/lakr233/assppweb:latest"
    }
  },
  "services": [
    {
      "name": "AssppWeb",
      "source": {
        "image": "ghcr.io/lakr233/assppweb:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "AssppWeb",
      "description": "The container listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "DATA_DIR",
      "service": "AssppWeb",
      "description": "Directory where package data and caches are stored",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "ACCESS_PASSWORD",
      "service": "AssppWeb",
      "description": "Optional password to protect the web UI and API",
      "secret": true,
      "strategy": "default",
      "default": "123456"
    },
    {
      "key": "MAX_DOWNLOAD_MB",
      "service": "AssppWeb",
      "description": "Reject downloads larger than this limit in MB (0 to disable)",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "PUBLIC_BASE_URL",
      "service": "AssppWeb",
      "description": "Provide a value for PUBLIC_BASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DOWNLOAD_THREADS",
      "service": "AssppWeb",
      "description": "Number of parallel download threads (usually 1-32)",
      "secret": false,
      "strategy": "default",
      "default": "8"
    },
    {
      "key": "AUTO_CLEANUP_DAYS",
      "service": "AssppWeb",
      "description": "Delete cached IPA files older than this many days (0 to disable)",
      "secret": false,
      "strategy": "default",
      "default": "7"
    },
    {
      "key": "AUTO_CLEANUP_MAX_MB",
      "service": "AssppWeb",
      "description": "Delete oldest cached files when storage exceeds this limit in MB (0 to disable)",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ios-asspp-web"
      }
    },
    "cli": "railway deploy --template ios-asspp-web",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "02782804-4313-4c3a-aeff-5d62474aaafa",
            "serializedConfig": {
              "services": {
                "f6516aa9-e9c6-4d1a-b5c9-7f7c3b8512d0": {
                  "name": "AssppWeb",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "ghcr.io/lakr233/assppweb:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "The container listening port",
                      "defaultValue": "8080"
                    },
                    "DATA_DIR": {
                      "isOptional": true,
                      "description": "Directory where package data and caches are stored",
                      "defaultValue": "/data"
                    },
                    "ACCESS_PASSWORD": {
                      "description": "Optional password to protect the web UI and API",
                      "defaultValue": "123456"
                    },
                    "MAX_DOWNLOAD_MB": {
                      "isOptional": true,
                      "description": "Reject downloads larger than this limit in MB (0 to disable)",
                      "defaultValue": "0"
                    },
                    "PUBLIC_BASE_URL": {
                      "isOptional": true,
                      "defaultValue": "\"https://${{RAILWAY_PUBLIC_DOMAIN}}\""
                    },
                    "DOWNLOAD_THREADS": {
                      "isOptional": true,
                      "description": "Number of parallel download threads (usually 1-32)",
                      "defaultValue": "8"
                    },
                    "AUTO_CLEANUP_DAYS": {
                      "isOptional": true,
                      "description": "Delete cached IPA files older than this many days (0 to disable)",
                      "defaultValue": "7"
                    },
                    "AUTO_CLEANUP_MAX_MB": {
                      "isOptional": true,
                      "description": "Delete oldest cached files when storage exceeds this limit in MB (0 to disable)",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "f6516aa9-e9c6-4d1a-b5c9-7f7c3b8512d0": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T07:06:56.155Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_46f849f3394a4aee9248",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 49,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "AssppWeb"
  }
}
