{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6f670dde-e84d-418a-9bc9-fae555e18b8d",
    "slug": "client-file-handoff-with-pairdrop",
    "name": "Client File Handoff with PairDrop",
    "description": "Password-gated browser file handoff with WebSocket fallback disabled.",
    "url": "https://railway.com/deploy/client-file-handoff-with-pairdrop",
    "upstream": {
      "image": "caddy@sha256:d8542f48d34a9cf4e4c11a478865229840e87e4c96ea3f439101f31a5d35f75f"
    }
  },
  "services": [
    {
      "name": "Gateway",
      "source": {
        "image": "caddy@sha256:d8542f48d34a9cf4e4c11a478865229840e87e4c96ea3f439101f31a5d35f75f"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "App",
      "source": {
        "image": "linuxserver/pairdrop@sha256:2e673eebd640beea33f131f4426b90548354e620ae593336a73be9374bb70bc2"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Gateway",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "UPSTREAM",
      "service": "Gateway",
      "description": "Provide a value for UPSTREAM.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GATEWAY_PASSWORD",
      "service": "Gateway",
      "description": "Gateway username is operator. Retrieve the generated password in Railway variables.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "App",
      "description": "Provide a value for TZ.",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PGID",
      "service": "App",
      "description": "Provide a value for PGID.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "PORT",
      "service": "App",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "PUID",
      "service": "App",
      "description": "Provide a value for PUID.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "DEBUG_MODE",
      "service": "App",
      "description": "Provide a value for DEBUG_MODE.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RATE_LIMIT",
      "service": "App",
      "description": "Provide a value for RATE_LIMIT.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "WS_FALLBACK",
      "service": "App",
      "description": "Provide a value for WS_FALLBACK.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "client-file-handoff-with-pairdrop"
      }
    },
    "cli": "railway deploy --template client-file-handoff-with-pairdrop",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6f670dde-e84d-418a-9bc9-fae555e18b8d",
            "serializedConfig": {
              "services": {
                "5d51b407-3c4e-54c2-b810-e86a42e83d61": {
                  "name": "Gateway",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'set -eu; hash=$(caddy hash-password --plaintext \"$GATEWAY_PASSWORD\"); printf \"{\\n admin off\\n auto_https off\\n}\\n:8080 {\\n header X-Robots-Tag noindex\\n basic_auth {\\n operator %s\\n }\\n reverse_proxy %s {\\n header_up X-Forwarded-Proto https\\n }\\n}\\n\" \"$hash\" \"$UPSTREAM\" > /tmp/Caddyfile; exec caddy run --config /tmp/Caddyfile --adapter caddyfile'",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "caddy@sha256:d8542f48d34a9cf4e4c11a478865229840e87e4c96ea3f439101f31a5d35f75f"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "UPSTREAM": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "http://${{App.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "GATEWAY_PASSWORD": {
                      "isOptional": false,
                      "description": "Gateway username is operator. Retrieve the generated password in Railway variables.",
                      "defaultValue": "{{GATEWAY_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  }
                },
                "8ab75e48-e52e-5e6e-9b96-1b78ead82bba": {
                  "name": "App",
                  "deploy": {
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "linuxserver/pairdrop@sha256:2e673eebd640beea33f131f4426b90548354e620ae593336a73be9374bb70bc2"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "Etc/UTC"
                    },
                    "PGID": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "1000"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "3000"
                    },
                    "PUID": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "1000"
                    },
                    "DEBUG_MODE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    },
                    "RATE_LIMIT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    },
                    "WS_FALLBACK": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-10-18T10:14:45.913Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-18T09:21:21.364Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_75d30f3b35ea482f87f4",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 94,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Gateway"
  }
}
