{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f3cb6553-2457-4b0b-8bf3-274562ab38c2",
    "slug": "ubuntu-terminal",
    "name": "Ubuntu Terminal | Web Shell + SSH + tmux",
    "description": "Ubuntu 24.04 shell in the browser and over SSH. tmux, persistent home.",
    "url": "https://railway.com/deploy/ubuntu-terminal",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/terminal-railway"
    }
  },
  "services": [
    {
      "name": "ubuntu-terminal",
      "source": {
        "repo": "https://github.com/nomideusz/terminal-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/root",
      "tcp_ports": [
        22
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "ubuntu-terminal",
      "description": "Time zone inside the box.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "ubuntu-terminal",
      "description": "Port of the browser terminal. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "7681"
    },
    {
      "key": "WEB_USER",
      "service": "ubuntu-terminal",
      "description": "Username for the browser terminal login.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "WEB_PASSWORD",
      "service": "ubuntu-terminal",
      "description": "Password for the browser terminal login. This gates root access to the box - keep it strong.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ROOT_PASSWORD",
      "service": "ubuntu-terminal",
      "description": "Password for `ssh root@<tcp-proxy-host> -p <port>`. Clear it to allow key-only SSH login.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ubuntu-terminal"
      }
    },
    "cli": "railway deploy --template ubuntu-terminal",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f3cb6553-2457-4b0b-8bf3-274562ab38c2",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "eec3e3b9-df24-42ab-9d74-b87bdd8ca236": {
                  "icon": "https://devicons.railway.com/i/ubuntu.svg",
                  "name": "ubuntu-terminal",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/terminal-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Time zone inside the box.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port of the browser terminal. Do not change.",
                      "defaultValue": "7681"
                    },
                    "GH_TOKEN": {
                      "isOptional": true,
                      "description": "Optional. GitHub token so `gh` and git pushes work without an interactive login.",
                      "defaultValue": ""
                    },
                    "WEB_USER": {
                      "isOptional": false,
                      "description": "Username for the browser terminal login.",
                      "defaultValue": "admin"
                    },
                    "WEB_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the browser terminal login. This gates root access to the box - keep it strong.",
                      "defaultValue": "{{WEB_PASSWORD}}"
                    },
                    "ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for `ssh root@<tcp-proxy-host> -p <port>`. Clear it to allow key-only SSH login.",
                      "defaultValue": "{{ROOT_PASSWORD}}"
                    },
                    "AUTHORIZED_KEYS": {
                      "isOptional": true,
                      "description": "SSH public key(s), one per line, for key-based root login.",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "22": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:7681": {
                        "port": 7681
                      }
                    }
                  },
                  "volumeMounts": {
                    "eec3e3b9-df24-42ab-9d74-b87bdd8ca236": {
                      "mountPath": "/root"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "ubuntu-terminal",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-09T00:02:40.379Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T00:05:03.777Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ae8aede0ce8e43e7bfb6",
    "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": 81,
    "typical_start_seconds": 10,
    "slowest_service": "ubuntu-terminal"
  }
}
