{"id":17954364,"url":"https://github.com/txthinking/brook-manager","last_synced_at":"2025-03-25T00:31:58.781Z","repository":{"id":39974926,"uuid":"501980962","full_name":"txthinking/brook-manager","owner":"txthinking","description":"Brook Manager is a Brook management system for medium to large merchants.","archived":true,"fork":false,"pushed_at":"2024-05-13T08:26:15.000Z","size":309,"stargazers_count":122,"open_issues_count":6,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-14T06:46:23.753Z","etag":null,"topics":["brook","business","management","privacy","proxy","shadowsocks","ui","vpn","web"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/txthinking.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}},"created_at":"2022-06-10T09:26:09.000Z","updated_at":"2024-08-17T02:00:55.000Z","dependencies_parsed_at":"2024-02-05T22:02:31.301Z","dependency_job_id":"e7d1c1e9-6868-4560-8be0-8e4eef0a4ccc","html_url":"https://github.com/txthinking/brook-manager","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fbrook-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fbrook-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fbrook-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fbrook-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/txthinking","download_url":"https://codeload.github.com/txthinking/brook-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377921,"owners_count":20605374,"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","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":["brook","business","management","privacy","proxy","shadowsocks","ui","vpn","web"],"created_at":"2024-10-29T10:14:22.306Z","updated_at":"2025-03-25T00:31:58.304Z","avatar_url":"https://github.com/txthinking.png","language":"HTML","readme":"Deprecated. Please move to: https://github.com/TxThinkingInc/brook-user-system\n\n# brook-manager\n\nA Web UI for fully automatic management of [Brook](https://github.com/txthinking/brook)\n\n## Features\n\n| Features                                                                             | 功能                                                 |\n| ------------------------------------------------------------------------------------ | ---------------------------------------------------- |\n| Fully automatic deployment of brook                                                  | 全自动部署 brook                                     |\n| User registration/payment/adding nodes will automatically trigger deployment brook   | 用户注册/支付/添加节点会自动触发部署 brook           |\n| You never even need to log into the node machine                                     | 你甚至永远不需要登录节点机器                         |\n| User registration                                                                    | 用户注册                                             |\n| Traffic Statistics                                                                   | 流量统计                                             |\n| Multi-port multi-user                                                                | 多端口多用户                                         |\n| Single-port multi-user                                                               | 单端口多用户                                         |\n| Audit rules                                                                          | 审计规则                                             |\n| multi-level lines                                                                    | 多级别线路                                           |\n| Multi-level VIP                                                                      | 多级别 VIP                                           |\n| Order and payment                                                                    | 订单及支付                                           |\n| Automatically generate subscription links                                            | 自动生成订阅链接                                     |\n| Ban/Restore User                                                                     | 禁用/恢复用户                                        |\n| One-line command deployment                                                          | 一行命令部署                                         |\n| MySQL database [Auth](https://github.com/denodrivers/mysql/issues/37#issuecomment-651771807)                                                                      | MySQL 数据库 [Auth](https://github.com/denodrivers/mysql/issues/37#issuecomment-651771807)                                        |\n| Reset all user traffic on the 1st of every month                                     | 每月 1 号重置所有用户流量                            |\n| Automatically clear their nodes when users expire                                    | 当用户到期自动清除其节点                             |\n| It also supports adding your own manual deployment brook link and traffic Statistics | 同时也支持添加你自己手动部署的 brook link 和流量统计 |\n| ...                                                                                  | ...                                                  |\n\n## Install [nami](https://github.com/txthinking/nami)\n\n```\nbash \u003c(curl https://bash.ooo/nami.sh)\n```\n\n#### Install mysql\n\nHere take Ubuntu 22.04 as an example, if there is a problem, you can google how to solve the problem of mysql installation and configuration\n\n```\napt-get install default-mysql-server default-mysql-client // or the old name: mysql-server mysql-client\nnami install mysql-init\nmysql-init\nsystemctl restart mysql.service\n```\n\nTest via mysql client\n\n```\nmysql -h 127.0.0.1 -u root -p111111\n```\n\n#### Install brook-manager\n\n```\nnami install joker nico hancock mad brook-manager\n```\n\n#### Run brook-manager http server\n\ncreate a http server `http://127.0.0.1:8080`\n\n```\nbrook-manager --listen 127.0.0.1:8080 --ui default --mysqladdress 127.0.0.1:3306 --mysqlusername root --mysqlpassword 111111 --mysqldbname brook\n```\n\n#### Run brook-manager task\n\n```\nbrook-manager --task --mysqladdress 127.0.0.1:3306 --mysqlusername root --mysqlpassword 111111 --mysqldbname brook\n```\n\n#### Run a reverse proxy web server\n\nHere is an example of nico, of course you need to prepare a domain name and resolve it to your server IP\n\n```\nnico domain.com http://127.0.0.1:8080\n```\n\n#### How to run command as daemon\n\nYou may like [joker](https://github.com/txthinking/joker)\n\n#### Amdin URL\n\nhttps://domain.com/admin/\n\n#### User URL\n\nhttps://domain.com\n\n## PR Welcome\n\n```\nnami install hancock mad 7z deno denobundle\ngit clone https://github.com/txthinking/brook-manager.git\ncd brook-manager\n\ndev=1 deno run -Ar main.js --listen 127.0.0.1:8080 --ui default --mysqladdress 127.0.0.1:3306 --mysqlusername root --mysqlpassword 111111 --mysqldbname brook\ndev=1 deno run -Ar main.js --task --mysqladdress 127.0.0.1:3306 --mysqlusername root --mysqlpassword 111111 --mysqldbname brook\n\n# then open http://127.0.0.1:8080/admin/\n# then open http://127.0.0.1:8080\n```\n\n#### File introduction\n\n```\n├── adminapi.js     // admin api\n├── userapi.js      // user api\n├── cron.js         // cron\n├── task.js         // task\n├── main.js         // entry\n├── mysqlmigrate.js // mysql db migration\n├── static/\n│   └── default/    // default ui, you can create more ui\n│       ├── account.html\n│       ├── admin/  // admin ui\n│       ├── cryptocurrency_payment.html\n│       ├── index.html\n│       ├── lang/   // i18n\n│       ├── signin.html\n│       ├── signup.html\n│       ├── simulate_payment.html\n│       └── vip.html\n```\n\n## License\n\n```\n- Any client-side web page based on this project and any derivatives must provide merchant contact information:\n\n    telegram group or other ways to contact you\n\n- Any client-side web page based on this project and any derivatives must contain the following statement in a prominent place(or other languages with the same meaning):\n\n    The current site is built by the merchant based on the open source software brook-manager(https://github.com/txthinking/brook-manager), and brook has no interest in you. If you encounter problems, please contact the merchant.\n```\n\n## Disclaimer\n\nWe have no liability to you.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxthinking%2Fbrook-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxthinking%2Fbrook-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxthinking%2Fbrook-manager/lists"}