Code Monkey home page Code Monkey logo

brook-manager's Introduction

Deprecated. Please move to: https://github.com/TxThinkingInc/brook-user-system

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 和流量统计
... ...

Install nami

bash <(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 default-mysql-server default-mysql-client // or the old name: 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

https://domain.com/admin/

User URL

https://domain.com

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.

brook-manager's People

Contributors

txthinking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

brook-manager's Issues

No remove button for managed brooks and users

There is no remove button for managed brooks and users, I can only ban users which will not stop their links from working and if I wanna edit a managed brook all options are disabled, I can't remove or disable the links deployed on it, also it would be nice to be able to deploy links again in case the destination machine got restarted.

Thank you for your amazing work btw, these are just suggestions in case you wanted to upgrade the work.

error , please help

brook-manager --listen 127.0.0.1:8080 --ui default --mysqladdress 127.0.0.1:3306 --mysqlusername root --mysqlpassword 111111 --mysqldbname brook
INFO connecting 127.0.0.1:3306
error: Uncaught (in promise) ConnectionRefused: Connection refused (os error 111)
at async Object.connect (deno:ext/net/01_net.js:333:17)
at async PoolConnection._connect (https://deno.land/x/[email protected]/src/connection.ts:44:35)
at async PoolConnection.connect (https://deno.land/x/[email protected]/src/connection.ts:113:9)
at async Client.createConnection (https://deno.land/x/[email protected]/src/client.ts:11:9)
at async DeferredStack.creator (https://deno.land/x/[email protected]/src/pool.ts:48:26)
at async DeferredStack.pop (https://deno.land/x/[email protected]/src/deferred.ts:29:24)
at async ConnectionPool.pop (https://deno.land/x/[email protected]/src/pool.ts:77:20)
at async Client.useConnection (https://deno.land/x/[email protected]/src/client.ts:57:28)
at async Client.execute (https://deno.land/x/[email protected]/src/client.ts:49:16)
at async mysql (https://raw.githubusercontent.com/txthinking/denolib/master/mysql.js:78:5)

problem on using brook ui

hi , sorry im a novice , i did everything but on the step that says run http server for brook i got confused :
http://127.0.0.1:8080
what does it mean ? i just copy pasted the codes into my vps , without change anything after enter code it shows listening to 127.0.0.1:... and doesnt go forward ,
can you explain to me from this step with more details ?

connection refused

hello

when i want to make a managed user i see this error, how can i fix this ?

2023/01/13 20:53:01 dial tcp MY-IP:12345: connect: connection refused

404 Error on admin panel url

Hi
I installed brook-manager
I can reach the front page and its showing a sign in
but when I try to reach the admin panel it shows only a white page with 404 texts on it
What's the problem?

How to custom my own UI?

How to custom my own UI?Need modify the source and rebuild and select my own ui in the CLI?
Suggestion: Load my own setting/UI from a config folder can be more convenience.

504 Gateway Timeout

Hi, I am trying to deploy the brook-manager to my own VPS. I am using a Vultr VPS with Ubuntu 22.04. I have followed every step in the instruction and the Youtube Video. But I get 504 Gateway Timeout error when I finish all and visit my domain.
May I ask how can I fix this issue? Thank you so much!

cant access web site

follow the guide on youtube.com to install, but can't access website.
try netstat -lnp, 433 is listening by nico
try iptables -L , https port is accessable.
try curl https://localhost got following error.
curl: (35) error:0A00010B:SSL routines::wrong version number

one more dig mydomain, the result is fine. my domain register on cloudflare, no https proxy set yet.

admin panel 404

Hi
admin panel not working ..
404 error
user panel is ok and perfectly work.
Thanks.

If the server is restarted What is the happening t

If the server is restarted
What is the happening to the brook links ? Doesn't Brook Manager put the links online again through Joker? Because I tested it, it didn't do it
I have to update all the accounts one by one so that they come back to the joker list !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.