{
  "manifest_version": "1.0.0",
  "template": {
    "id": "89e8d5b1-397b-4497-9fa8-9b42daf33483",
    "slug": "filestash-collabora",
    "name": "Filestash",
    "description": "Web file manager for SFTP, S3, FTP, WebDAV and SMB storage",
    "url": "https://railway.com/deploy/filestash-collabora",
    "upstream": {
      "image": "collabora/code:latest"
    }
  },
  "services": [
    {
      "name": "collabora",
      "source": {
        "image": "collabora/code:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "filestash",
      "source": {
        "repo": "https://github.com/gridalpha/filestash-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "collabora",
      "description": "HTTP port coolwsd listens on",
      "secret": false,
      "strategy": "default",
      "default": "9980"
    },
    {
      "key": "aliasgroup1",
      "service": "collabora",
      "description": "WOPI hosts this editor will serve",
      "secret": false,
      "strategy": "default",
      "default": "https://.*:443"
    },
    {
      "key": "server_name",
      "service": "collabora",
      "description": "Hostname written into the discovery document",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "extra_params",
      "service": "collabora",
      "description": "TLS ends at the edge; sized for the container",
      "secret": false,
      "strategy": "default",
      "default": "--o:ssl.enable=false --o:ssl.termination=true --o:num_prespawn_children=1 --o:logging.level=warning"
    },
    {
      "key": "DONT_GEN_SSL_CERT",
      "service": "collabora",
      "description": "No certificate needed behind the edge",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PORT",
      "service": "filestash",
      "description": "HTTP port Filestash listens on",
      "secret": false,
      "strategy": "default",
      "default": "8334"
    },
    {
      "key": "OFFICE_URL",
      "service": "filestash",
      "description": "WOPI discovery endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "APPLICATION_URL",
      "service": "filestash",
      "description": "Public hostname, no scheme",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "OFFICE_REWRITE_URL",
      "service": "filestash",
      "description": "Editor URL the browser loads",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "OFFICE_FILESTASH_URL",
      "service": "filestash",
      "description": "WOPI callback origin for Collabora",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "FILESTASH_ADMIN_PASSWORD",
      "service": "filestash",
      "description": "Password for /admin and the file browser",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "filestash",
      "description": "Let in-flight uploads finish",
      "secret": false,
      "strategy": "default",
      "default": "20"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "filestash-collabora"
      }
    },
    "cli": "railway deploy --template filestash-collabora",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "89e8d5b1-397b-4497-9fa8-9b42daf33483",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1a8aa8c8-fd21-4525-85e8-c96ba9b483d0": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/collabora-online.svg",
                  "name": "collabora",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/hosting/discovery",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "collabora/code:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port coolwsd listens on",
                      "defaultValue": "9980"
                    },
                    "aliasgroup1": {
                      "isOptional": true,
                      "description": "WOPI hosts this editor will serve",
                      "defaultValue": "https://.*:443"
                    },
                    "server_name": {
                      "isOptional": false,
                      "description": "Hostname written into the discovery document",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "extra_params": {
                      "isOptional": false,
                      "description": "TLS ends at the edge; sized for the container",
                      "defaultValue": "--o:ssl.enable=false --o:ssl.termination=true --o:num_prespawn_children=1 --o:logging.level=warning"
                    },
                    "DONT_GEN_SSL_CERT": {
                      "isOptional": false,
                      "description": "No certificate needed behind the edge",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9980": {
                        "port": 9980
                      }
                    }
                  }
                },
                "1e227c0c-b8d1-479d-a9eb-1dd0988c341f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/filestash.svg",
                  "name": "filestash",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/filestash-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Filestash listens on",
                      "defaultValue": "8334"
                    },
                    "OFFICE_URL": {
                      "isOptional": true,
                      "description": "WOPI discovery endpoint",
                      "defaultValue": "https://${{collabora.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "APPLICATION_URL": {
                      "isOptional": false,
                      "description": "Public hostname, no scheme",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OFFICE_REWRITE_URL": {
                      "isOptional": true,
                      "description": "Editor URL the browser loads",
                      "defaultValue": "https://${{collabora.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OFFICE_FILESTASH_URL": {
                      "isOptional": true,
                      "description": "WOPI callback origin for Collabora",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "FILESTASH_ADMIN_PASSWORD": {
                      "isOptional": true,
                      "description": "Password for /admin and the file browser",
                      "defaultValue": "{{FILESTASH_ADMIN_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Let in-flight uploads finish",
                      "defaultValue": "20"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8334": {
                        "port": 8334
                      }
                    }
                  },
                  "volumeMounts": {
                    "1e227c0c-b8d1-479d-a9eb-1dd0988c341f": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "collabora",
      "method": "GET",
      "path": "/hosting/discovery",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T17:54:19.363Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T17:58:54.830Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e98c4df3cdff4f269247",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 108,
    "typical_build_seconds": 40,
    "typical_start_seconds": 20,
    "slowest_service": "filestash"
  }
}
