{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c98be07c-07fc-4579-aa8a-f7b8b719af64",
    "slug": "transfer-sh",
    "name": "Transfer.sh",
    "description": "Upload a file with curl and get a shareable link that expires",
    "url": "https://railway.com/deploy/transfer-sh",
    "upstream": {
      "image": "caddy:2-alpine"
    }
  },
  "services": [
    {
      "name": "caddy",
      "source": {
        "image": "caddy:2-alpine"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "transfer-sh",
      "source": {
        "image": "dutchcoders/transfer.sh:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "caddy",
      "description": "Public listener, health check /healthz",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "CADDY_CONFIG",
      "service": "caddy",
      "description": "Gateway routes, health check and client-IP rewrite",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "transfer-sh",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "BASEDIR",
      "service": "transfer-sh",
      "description": "Volume path holding uploads",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "PROVIDER",
      "service": "transfer-sh",
      "description": "Storage backend on the volume",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "PURGE_DAYS",
      "service": "transfer-sh",
      "description": "Age at which files are deleted",
      "secret": false,
      "strategy": "default",
      "default": "14"
    },
    {
      "key": "PRIVATE_HOST",
      "service": "transfer-sh",
      "description": "Private address the gateway proxies to",
      "secret": false,
      "strategy": "default",
      "default": "transfer-sh.railway.internal:8080"
    },
    {
      "key": "HTTP_AUTH_PASS",
      "service": "transfer-sh",
      "description": "Password required for uploads",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HTTP_AUTH_USER",
      "service": "transfer-sh",
      "description": "Username required for uploads",
      "secret": false,
      "strategy": "default",
      "default": "uploader"
    },
    {
      "key": "PURGE_INTERVAL",
      "service": "transfer-sh",
      "description": "Hours between purge sweeps",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "MAX_UPLOAD_SIZE",
      "service": "transfer-sh",
      "description": "Max upload in KB (1 GiB)",
      "secret": false,
      "strategy": "default",
      "default": "1048576"
    },
    {
      "key": "RANDOM_TOKEN_LENGTH",
      "service": "transfer-sh",
      "description": "Characters in each download token",
      "secret": true,
      "strategy": "default",
      "default": "16"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "transfer-sh",
      "description": "Let in-flight uploads finish",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "transfer-sh"
      }
    },
    "cli": "railway deploy --template transfer-sh",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c98be07c-07fc-4579-aa8a-f7b8b719af64",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "41edd7bb-dcbf-4ff8-8815-451d2b687951": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "caddy",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'printf %s \"$CADDY_CONFIG\" > /etc/caddy/config.json; caddy validate --config /etc/caddy/config.json || exit 1; exec caddy run --config /etc/caddy/config.json'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "caddy:2-alpine"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public listener, health check /healthz",
                      "defaultValue": "8080"
                    },
                    "CADDY_CONFIG": {
                      "isOptional": false,
                      "description": "Gateway routes, health check and client-IP rewrite",
                      "defaultValue": "{\"apps\":{\"http\":{\"servers\":{\"srv0\":{\"listen\":[\":{env.PORT}\"],\"trusted_proxies\":{\"source\":\"static\",\"ranges\":[\"100.64.0.0/10\",\"fd00::/8\",\"152.233.0.0/17\"]},\"routes\":[{\"match\":[{\"path\":[\"/healthz\"]}],\"handle\":[{\"handler\":\"static_response\",\"status_code\":200,\"body\":\"ok\"}]},{\"match\":[{\"method\":[\"PUT\"],\"path_regexp\":{\"pattern\":\"^/[^/]+/(scan|virustotal)$\"}}],\"handle\":[{\"handler\":\"static_response\",\"status_code\":403,\"body\":\"endpoint disabled\"}]},{\"handle\":[{\"handler\":\"reverse_proxy\",\"headers\":{\"request\":{\"set\":{\"X-Forwarded-For\":[\"{http.vars.client_ip}\"],\"X-Real-Ip\":[\"{http.vars.client_ip}\"]}}},\"upstreams\":[{\"dial\":\"${{transfer-sh.PRIVATE_HOST}}\"}]}]}]}}}}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "f8f34ec6-2fad-4244-a909-090013c44f23": {
                  "icon": "https://raw.githubusercontent.com/dutchcoders/transfer.sh-web/master/src/images/terminal.svg",
                  "name": "transfer-sh",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "dutchcoders/transfer.sh:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "8080"
                    },
                    "BASEDIR": {
                      "isOptional": false,
                      "description": "Volume path holding uploads",
                      "defaultValue": "/data"
                    },
                    "PROVIDER": {
                      "isOptional": false,
                      "description": "Storage backend on the volume",
                      "defaultValue": "local"
                    },
                    "PURGE_DAYS": {
                      "isOptional": false,
                      "description": "Age at which files are deleted",
                      "defaultValue": "14"
                    },
                    "PRIVATE_HOST": {
                      "isOptional": false,
                      "description": "Private address the gateway proxies to",
                      "defaultValue": "transfer-sh.railway.internal:8080"
                    },
                    "HTTP_AUTH_PASS": {
                      "isOptional": false,
                      "description": "Password required for uploads",
                      "defaultValue": "{{HTTP_AUTH_PASS}}"
                    },
                    "HTTP_AUTH_USER": {
                      "isOptional": false,
                      "description": "Username required for uploads",
                      "defaultValue": "uploader"
                    },
                    "PURGE_INTERVAL": {
                      "isOptional": false,
                      "description": "Hours between purge sweeps",
                      "defaultValue": "1"
                    },
                    "MAX_UPLOAD_SIZE": {
                      "isOptional": false,
                      "description": "Max upload in KB (1 GiB)",
                      "defaultValue": "1048576"
                    },
                    "RANDOM_TOKEN_LENGTH": {
                      "isOptional": false,
                      "description": "Characters in each download token",
                      "defaultValue": "16"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Let in-flight uploads finish",
                      "defaultValue": "30"
                    }
                  },
                  "volumeMounts": {
                    "f8f34ec6-2fad-4244-a909-090013c44f23": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "caddy",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-05T08:13:53.430Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_07bbc9d6dd204275a8f3",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 29,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "caddy"
  }
}
