{
  "manifest_version": "1.0.0",
  "template": {
    "id": "eceb4c4a-281d-4c14-bb1b-fa5a7109250f",
    "slug": "tinyfilemanager",
    "name": "tinyfilemanager",
    "description": "Browser-based file manager for a folder on your server",
    "url": "https://railway.com/deploy/tinyfilemanager",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/tinyfilemanager-railway"
    }
  },
  "services": [
    {
      "name": "tinyfilemanager",
      "source": {
        "repo": "https://github.com/gridalpha/tinyfilemanager-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "tinyfilemanager",
      "description": "HTTP port Apache listens on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TFM_TIMEZONE",
      "service": "tinyfilemanager",
      "description": "Timezone for displayed timestamps",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "TFM_ADMIN_USER",
      "service": "tinyfilemanager",
      "description": "Admin login name",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "TFM_EDIT_FILES",
      "service": "tinyfilemanager",
      "description": "Enable the built-in file editor",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TFM_IP_RULESET",
      "service": "tinyfilemanager",
      "description": "App-level IP allow/deny mode",
      "secret": false,
      "strategy": "default",
      "default": "OFF"
    },
    {
      "key": "TFM_MAX_UPLOAD_MB",
      "service": "tinyfilemanager",
      "description": "Upload ceiling for PHP and the app",
      "secret": false,
      "strategy": "default",
      "default": "512"
    },
    {
      "key": "TFM_ONLINE_VIEWER",
      "service": "tinyfilemanager",
      "description": "Google document preview, off by default",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TFM_ADMIN_PASSWORD",
      "service": "tinyfilemanager",
      "description": "Admin password, hashed at startup",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TFM_DATETIME_FORMAT",
      "service": "tinyfilemanager",
      "description": "Date format of the modified column",
      "secret": false,
      "strategy": "default",
      "default": "Y-m-d H:i"
    },
    {
      "key": "TFM_GLOBAL_READONLY",
      "service": "tinyfilemanager",
      "description": "Make every account read-only",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TFM_HIGHLIGHTJS_STYLE",
      "service": "tinyfilemanager",
      "description": "Syntax highlighting theme",
      "secret": false,
      "strategy": "default",
      "default": "vs"
    },
    {
      "key": "TFM_PATH_DISPLAY_MODE",
      "service": "tinyfilemanager",
      "description": "Show paths relative to the root",
      "secret": false,
      "strategy": "default",
      "default": "relative"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "tinyfilemanager",
      "description": "Let in-flight uploads finish",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tinyfilemanager"
      }
    },
    "cli": "railway deploy --template tinyfilemanager",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "eceb4c4a-281d-4c14-bb1b-fa5a7109250f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1f55f173-5731-4907-990f-5602ef98d44c": {
                  "icon": "https://cyberaz0r.info/assets/images/tiny-file-manager-logo.png",
                  "name": "tinyfilemanager",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/tinyfilemanager-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Apache listens on",
                      "defaultValue": "8080"
                    },
                    "TFM_TIMEZONE": {
                      "isOptional": true,
                      "description": "Timezone for displayed timestamps",
                      "defaultValue": "Etc/UTC"
                    },
                    "TFM_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Admin login name",
                      "defaultValue": "admin"
                    },
                    "TFM_EDIT_FILES": {
                      "isOptional": false,
                      "description": "Enable the built-in file editor",
                      "defaultValue": "true"
                    },
                    "TFM_IP_RULESET": {
                      "isOptional": true,
                      "description": "App-level IP allow/deny mode",
                      "defaultValue": "OFF"
                    },
                    "TFM_MAX_UPLOAD_MB": {
                      "isOptional": false,
                      "description": "Upload ceiling for PHP and the app",
                      "defaultValue": "512"
                    },
                    "TFM_ONLINE_VIEWER": {
                      "isOptional": true,
                      "description": "Google document preview, off by default",
                      "defaultValue": "false"
                    },
                    "TFM_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Admin password, hashed at startup",
                      "defaultValue": "{{TFM_ADMIN_PASSWORD}}"
                    },
                    "TFM_DATETIME_FORMAT": {
                      "isOptional": true,
                      "description": "Date format of the modified column",
                      "defaultValue": "Y-m-d H:i"
                    },
                    "TFM_GLOBAL_READONLY": {
                      "isOptional": false,
                      "description": "Make every account read-only",
                      "defaultValue": "false"
                    },
                    "TFM_HIGHLIGHTJS_STYLE": {
                      "isOptional": true,
                      "description": "Syntax highlighting theme",
                      "defaultValue": "vs"
                    },
                    "TFM_PATH_DISPLAY_MODE": {
                      "isOptional": true,
                      "description": "Show paths relative to the root",
                      "defaultValue": "relative"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Let in-flight uploads finish",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "1f55f173-5731-4907-990f-5602ef98d44c": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "tinyfilemanager",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T10:14:39.124Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-15T07:52:43.037Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_75aebc71af464b988448",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 70,
    "typical_build_seconds": 41,
    "typical_start_seconds": 11,
    "slowest_service": "tinyfilemanager"
  }
}
