{"id":19902843,"url":"https://github.com/cp0204/ttydbridge","last_synced_at":"2026-05-10T07:43:04.081Z","repository":{"id":238833975,"uuid":"795584740","full_name":"Cp0204/ttydBridge","owner":"Cp0204","description":"A Docker app makes it easy to use the host terminal in the web | 轻松在网页中使用主机终端","archived":false,"fork":false,"pushed_at":"2024-05-23T04:35:55.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-23T04:59:25.273Z","etag":null,"topics":["docker","remote-access","ssh","terminal","ttyd","web"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/cp0204/ttydbridge","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cp0204.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-03T15:39:51.000Z","updated_at":"2024-07-11T15:52:33.569Z","dependencies_parsed_at":"2024-05-08T12:27:34.117Z","dependency_job_id":"1c0db671-cdcc-4026-9fdf-47ab645e9098","html_url":"https://github.com/Cp0204/ttydBridge","commit_stats":null,"previous_names":["cp0204/ttydbridge"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Cp0204/ttydBridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cp0204%2FttydBridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cp0204%2FttydBridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cp0204%2FttydBridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cp0204%2FttydBridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cp0204","download_url":"https://codeload.github.com/Cp0204/ttydBridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cp0204%2FttydBridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281295900,"owners_count":26476782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","remote-access","ssh","terminal","ttyd","web"],"created_at":"2024-11-12T20:19:54.555Z","updated_at":"2025-10-27T16:05:11.509Z","avatar_url":"https://github.com/Cp0204.png","language":"Shell","funding_links":["https://buymeacoffee.com/cp0204"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n![logo](img/icon.png)\n\n# ttydBridge\n\nEnglish | [简体中文](/README_CN.md)\n\nDocker containers based on ttyd bypass the isolation mechanism.\n\nA \"bridge\" to the host environment, allowing you to easily use the host terminal in your browser.\n\n[![docker tag][docker-tag-image]][github-url] [![docker pulls][docker-pulls-image]][docker-url] [![docker image size][docker-image-size-image]][docker-url]\n\n[docker-tag-image]: https://img.shields.io/docker/v/cp0204/ttydbridge\n[docker-pulls-image]: https://img.shields.io/docker/pulls/cp0204/ttydbridge\n[docker-image-size-image]: https://img.shields.io/docker/image-size/cp0204/ttydbridge\n[github-url]: https://github.com/Cp0204/ttydbridge\n[docker-url]: https://hub.docker.com/r/cp0204/ttydbridge\n\n\u003c/div\u003e\n\n## Usage\n\nRun the container:\n\n```shell\ndocker run -d \\\n  --name ttydbridge \\\n  -e PORT=2222 \\\n  -v /opt:/opt \\\n  --pid host \\\n  --privileged \\\n  --restart unless-stopped \\\n  cp0204/ttydbridge:latest\n```\n\nAccess the web terminal via `http://yourhost:2222` and login with your system user.\n\n## Environment\n\n| Name                            | Default | Description                                                                                               |\n| ------------------------------- | ------- | --------------------------------------------------------------------------------------------------------- |\n| `EXEC_DIR`                      | `/opt`  | Program execution dir, must be consistent with volume mappings, **DO NOT MODIFY if you don't understand** |\n| `START_COMMAND`                 | `login` | ttyd initial command, `login` uses system authentication, `bash` enters directly                          |\n| `PORT`                          | `2222`  | Web port                                                                                                  |\n| `ALLOW_WRITE`                   | `true`  | Allow terminal input                                                                                      |\n| `HTTP_USERNAME` `HTTP_PASSWORD` |         | HTTP basic authentication, effective when set at the same time                                            |\n| `ENABLE_SSL`                    | `false` | Enable SSL (https)                                                                                        |\n| `SSL_CERT` `SSL_KEY` `SSL_CA`   |         | Host certificate paths, effective when ENABLE_SSL=true                                                    |\n| `ENABLE_IPV6`                   | `false` | Enable IPv6 support                                                                                       |\n| `AUTO_ALLOW_PORT`               | `false` | Automatically allow web ports                                                                             |\n\n## Donate\n\nEnjoyed the project? Consider buying me a coffee - it helps me keep going!\n\n\u003ca href=\"https://buymeacoffee.com/cp0204\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" height=\"50\" width=\"210\" target=\"_blank\"/\u003e\u003c/a\u003e\n\n![WeChatPay](https://cdn.jsdelivr.net/gh/Cp0204/Cp0204@main/img/wechat_pay_qrcode.png)\n\n## Thank\n\n- [ttyd](https://github.com/tsl0922/ttyd) : Share your terminal over the web\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcp0204%2Fttydbridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcp0204%2Fttydbridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcp0204%2Fttydbridge/lists"}