brook-manager
A Web UI for fully automatic management of Brook
Features
Features | ๅ่ฝ |
---|---|
Fully automatic deployment of brook | ๅ จ่ชๅจ้จ็ฝฒ brook |
User registration/payment/adding nodes will automatically trigger deployment brook | ็จๆทๆณจๅ/ๆฏไป/ๆทปๅ ่็นไผ่ชๅจ่งฆๅ้จ็ฝฒ brook |
You never even need to log into the node machine | ไฝ ็่ณๆฐธ่ฟไธ้่ฆ็ปๅฝ่็นๆบๅจ |
User registration | ็จๆทๆณจๅ |
Traffic Statistics | ๆต้็ป่ฎก |
Multi-port multi-user | ๅค็ซฏๅฃๅค็จๆท |
Single-port multi-user | ๅ็ซฏๅฃๅค็จๆท |
Audit rules | ๅฎก่ฎก่งๅ |
multi-level lines | ๅค็บงๅซ็บฟ่ทฏ |
Multi-level VIP | ๅค็บงๅซ VIP |
Order and payment | ่ฎขๅๅๆฏไป |
Automatically generate subscription links | ่ชๅจ็ๆ่ฎข้ ้พๆฅ |
Ban/Restore User | ็ฆ็จ/ๆขๅค็จๆท |
One-line command deployment | ไธ่กๅฝไปค้จ็ฝฒ |
MySQL database Auth | MySQL ๆฐๆฎๅบ Auth |
Reset all user traffic on the 1st of every month | ๆฏๆ 1 ๅท้็ฝฎๆๆ็จๆทๆต้ |
Automatically clear their nodes when users expire | ๅฝ็จๆทๅฐๆ่ชๅจๆธ ้คๅ ถ่็น |
It also supports adding your own manual deployment brook link and traffic Statistics | ๅๆถไนๆฏๆๆทปๅ ไฝ ่ชๅทฑๆๅจ้จ็ฝฒ็ brook link ๅๆต้็ป่ฎก |
... | ... |
nami
Installbash <(curl https://bash.ooo/nami.sh)
Install mysql
Here 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
apt-get install mysql-server mysql-client
nami install mysql-init
mysql-init
systemctl restart mysql.service
Test via mysql client
mysql -h 127.0.0.1 -u root -p111111
Install brook-manager
nami install joker nico hancock mad brook-manager
Run brook-manager http server
create a http server http://127.0.0.1:8080
brook-manager --listen 127.0.0.1:8080 --ui default --mysqladdress 127.0.0.1:3306 --mysqlusername root --mysqlpassword 111111 --mysqldbname brook
Run brook-manager task
brook-manager --task --mysqladdress 127.0.0.1:3306 --mysqlusername root --mysqlpassword 111111 --mysqldbname brook
Run a reverse proxy web server
Here is an example of nico, of course you need to prepare a domain name and resolve it to your server IP
nico domain.com http://127.0.0.1:8080
How to run command as daemon
You may like joker
Amdin URL
User URL
PR Welcome
nami install hancock mad 7z deno denobundle
git clone https://github.com/txthinking/brook-manager.git
cd brook-manager
dev=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
dev=1 deno run -Ar main.js --task --mysqladdress 127.0.0.1:3306 --mysqlusername root --mysqlpassword 111111 --mysqldbname brook
# then open http://127.0.0.1:8080/admin/
# then open http://127.0.0.1:8080
File introduction
โโโ adminapi.js // admin api
โโโ userapi.js // user api
โโโ cron.js // cron
โโโ task.js // task
โโโ main.js // entry
โโโ mysqlmigrate.js // mysql db migration
โโโ static/
โ โโโ default/ // default ui, you can create more ui
โ โโโ account.html
โ โโโ admin/ // admin ui
โ โโโ cryptocurrency_payment.html
โ โโโ index.html
โ โโโ lang/ // i18n
โ โโโ signin.html
โ โโโ signup.html
โ โโโ simulate_payment.html
โ โโโ vip.html
License
- Any client-side web page based on this project and any derivatives must provide merchant contact information:
telegram group or other ways to contact you
- 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):
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.
Disclaimer
We have no liability to you.