{
  "manifest_version": "1.0.0",
  "template": {
    "id": "314fa147-f58f-4daa-ba54-f3dbd8dfd0d0",
    "slug": "debian-13-web-terminal-browser-shell",
    "name": "Debian 13 Web Terminal (Browser Shell)",
    "description": "Persistent Debian shell in your browser, password-protected. No SSH needed.",
    "url": "https://railway.com/deploy/debian-13-web-terminal-browser-shell",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/debian-terminal-railway"
    }
  },
  "services": [
    {
      "name": "Terminal",
      "source": {
        "repo": "https://github.com/baranberkay96/debian-terminal-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/home",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Terminal",
      "description": "Time zone of the shell, e.g. Europe/Istanbul.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Terminal",
      "description": "Port of the auth proxy (nginx). The public domain and healthcheck use it. ttyd stays on 127.0.0.1:7681.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PASSWORD",
      "service": "Terminal",
      "description": "Browser login password, generated at deploy (copy it from this variable). Min 12 chars. The terminal does not start without it.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "USERNAME",
      "service": "Terminal",
      "description": "Browser login name (letters, digits, . _ -). The Linux account is always 'debian', with sudo.",
      "secret": false,
      "strategy": "default",
      "default": "debian"
    },
    {
      "key": "TERMINAL_TMUX",
      "service": "Terminal",
      "description": "true: each tab attaches to a tmux session that survives closed tabs and reconnects. false: a new bash per tab.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TERMINAL_FONT_SIZE",
      "service": "Terminal",
      "description": "Font size of the browser terminal (8-40).",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Terminal",
      "description": "Seconds between stop signal and kill on redeploy, so tmux shells exit cleanly and save history.",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "debian-13-web-terminal-browser-shell"
      }
    },
    "cli": "railway deploy --template debian-13-web-terminal-browser-shell",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "314fa147-f58f-4daa-ba54-f3dbd8dfd0d0",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "67ac0a84-b2be-5b9d-9d70-51c68dbddd4c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/debian-linux.svg",
                  "name": "Terminal",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 120,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/debian-terminal-railway",
                    "branch": "main",
                    "rootDirectory": "/services/terminal"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": true,
                      "description": "Time zone of the shell, e.g. Europe/Istanbul.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "Port of the auth proxy (nginx). The public domain and healthcheck use it. ttyd stays on 127.0.0.1:7681.",
                      "defaultValue": "8080"
                    },
                    "PASSWORD": {
                      "isOptional": true,
                      "description": "Browser login password, generated at deploy (copy it from this variable). Min 12 chars. The terminal does not start without it.",
                      "defaultValue": "{{PASSWORD}}"
                    },
                    "USERNAME": {
                      "isOptional": true,
                      "description": "Browser login name (letters, digits, . _ -). The Linux account is always 'debian', with sudo.",
                      "defaultValue": "debian"
                    },
                    "APT_PACKAGES": {
                      "isOptional": true,
                      "description": "Optional. Debian packages (space-separated) reinstalled in the background at every start, since apt installs reset on redeploy.",
                      "defaultValue": ""
                    },
                    "TERMINAL_TMUX": {
                      "isOptional": true,
                      "description": "true: each tab attaches to a tmux session that survives closed tabs and reconnects. false: a new bash per tab.",
                      "defaultValue": "true"
                    },
                    "TERMINAL_FONT_SIZE": {
                      "isOptional": true,
                      "description": "Font size of the browser terminal (8-40).",
                      "defaultValue": "15"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Seconds between stop signal and kill on redeploy, so tmux shells exit cleanly and save history.",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "2b81a6a0-7744-5bbe-bef2-f13ea5ee0a74": {
                      "mountPath": "/home"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Terminal",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-19T22:14:48.327Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-19T21:47:36.415Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_76fe10ac1bf74cd9b958",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 119,
    "typical_build_seconds": 81,
    "typical_start_seconds": 20,
    "slowest_service": "Terminal"
  }
}
