├── README.md ├── README_ZH.md ├── install_auto.sh └── res └── images ├── cluster1.png ├── cluster2.png ├── cluster3.png ├── cluster4.png ├── cluster5.png └── cluster6.png /README.md: -------------------------------------------------------------------------------- 1 | # About ProxyAdmin Cluster Edition 2 | ProxyAdmin cluster version, is a powerful proxy service tool [snail007/goproxy](https://github.com/snail007/goproxy) control panel, run it, one second let you have a proxy service to control massive machines, friendly The interactive interface, Newbie can also easily get started, so that you can use it handy and feel comfortable. 3 | 4 | This panel is used for a fee, please contact the official telegram group for purchase: [join](https://t.me/snail007_goproxy) 5 | 6 | For the first use, the id.txt file will be generated in the following directory, and the content inside can be bound to the authorized platform. 7 | Windows: C: \ gpa \ id.txt 8 | Linux & MacOS: /etc/gpa/id.txt 9 | 10 |
11 | 12 | [Manual](https://snail.gitee.io/proxy/manual/#/?id=_11-cluster) | [中文简介](/README_ZH.md)| [参考手册](https://snail.gitee.io/proxy/manual/zh/#/?id=_11%e9%9b%86%e7%be%a4%e7%ae%a1%e7%90%86) 13 | 14 | ## Preview 15 | 16 | ### Dashboard 17 | 18 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/cluster1.png) 19 | 20 | ### Nodes Group Management 21 | 22 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/cluster2.png) 23 | 24 | ### Services Management 25 | 26 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/cluster3.png) 27 | 28 | ### Nodes Management 29 | 30 | State explanation: 31 | online: All services of this group are running normally on this node. 32 | exception: All the services of this group are running abnormally on this node. You can click "Abnormal" to view the specific service failure and failure information. 33 | offline: The node is not online, or the node cannot communicate with the control panel. 34 | 35 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/cluster4.png) 36 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/cluster5.png) 37 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/cluster6.png) 38 | 39 | 40 | ## Start Using 41 | 42 | ### Quick Installation 43 | 44 | If your VPS is a Linux 64-bit system, you only need to execute the following sentence to complete the automatic installation and configuration. 45 | 46 | Tip: All operations require root privileges. 47 | 48 | ```shell 49 | bash -c "$(curl -s -L https://raw.githubusercontent.com/snail007/proxy-admin-cluster/master/install_auto.sh)" 50 | ``` 51 | 52 | The installation is complete, the configuration directory is /etc/gpa. For more detailed usage, please refer to the manual directory above to learn more about the features you want to use. 53 | 54 | If the installation fails or your vps is not a linux64-bit system, follow the manual installation steps below. 55 |    56 | ### Manual Installation 57 | 58 | Select the file that is appropriate for your system and download it, [click to download](https://github.com/snail007/proxy-admin-cluster/releases) 59 | 60 | ### Linux && MacOS 61 | 62 | The root account is executed: 63 | 64 | `cd Enter "proxy-admin directory". 65 | 66 | `./proxy-admin install` 67 | 68 | 69 | ### Windows 70 | 71 | 1. Install using the assistant tool 72 | 73 | The administrator opens goproxy_helper.exe and can install/uninstall/restart the service with one click. 74 | 75 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/gh.png) 76 | 77 | 2. Command line installation 78 | 79 | The administrator account executes cmd.exe 80 | 81 | `cd Enter "proxy-admin directory". 82 | 83 | `proxy-admin.exe install` 84 | 85 | ### Access 86 | 87 | After the installation is successful, open the browser to access: http://127.0.0.1:32080, the first default account is root, the password is 123, remember to modify the first time after login. 88 | 89 | Configuration file path: 90 | 91 | Linux && MacOS is located in /etc/gpa/app.toml 92 | 93 | Windows is located at C:\gpa\app.toml 94 | 95 | You can configure the listening port and logging. 96 | 97 | ## Uninstalling services 98 | 99 | ### Linux && MacOS 100 | 101 | The root account is executed: 102 | 103 | `cd Enter "proxy-admin directory". 104 | 105 | `./proxy-admin uninstall` 106 | 107 | 108 | ### Windows 109 | 110 | The administrator account executes cmd.exe 111 | 112 | `cd Enter "proxy-admin directory". 113 | 114 | `proxy-admin.exe uninstall` 115 | 116 | ## Service Management 117 | 118 | The following operations must be done before the service is installed. 119 | 120 | There are two ways to manage services: 121 | 122 | 1. Use the program proxy-admin to manage the service. 123 | 124 | proxy-admin install install as system service 125 | 126 | proxy-admin uninstall uninstall service 127 | 128 | proxy-admin start 129 | 130 | proxy-admin stop 131 | 132 | proxy-admin restart 133 | 134 | proxy-admin backup backup data 135 | 136 | proxy-admin restore restore data 137 | 138 | 2. Manage using system service management tools. 139 | 140 | The proxy-admin system service name is: proxyadmin 141 | 142 | Linux can be managed by systemctl. 143 | 144 | MacOS can be managed by commands below. 145 | 146 | Windows can be managed using the system's Service Manager. 147 | 148 | ## UPDATE 149 | 150 | ### Linux 151 | 152 | ```shell 153 | proxy-admin update 154 | ``` 155 | 156 | Force update. 157 | 158 | ```shell 159 | proxy-admin update -f 160 | ``` 161 | 162 | ### Windows 163 | 164 | ```bat 165 | c:\ 166 | cd gpa 167 | proxy-admin update 168 | ``` 169 | 170 | Force update. 171 | 172 | ```shell 173 | c:\ 174 | cd gpa 175 | proxy-admin update -f 176 | ``` 177 | 178 | ## Thanks 179 | 180 | [Back to the light](https://gitee.com/yinqi) The back-end template provided us a comfortable interactive experience. 181 | -------------------------------------------------------------------------------- /README_ZH.md: -------------------------------------------------------------------------------- 1 | # 关于 ProxyAdmin 集群版 2 | ProxyAdmin 集群版,是强大的代理服务工具 [snail007/goproxy](https://github.com/snail007/goproxy) 的控制面板,运行了它,一秒让你拥有控制海量机器上的proxy服务,友好的交互界面,小白也能轻松上手,让你用起来得心应手,心情舒畅。 3 | 4 | 此面板是收费使用,请购买后激活使用。 5 | 6 | 首次使用,直接在命令行执行proxy-admin,等待程序自己退出,会在下面的目录生成id.txt文件,把里面的内容绑定到授权平台即可。 7 | Windows:C:\gpa\id.txt 8 | Linux & MacOS : /etc/gpa/id.txt 9 | 10 | 购买方式: 11 | 12 | 1. 授权平台可以在线自助购买,点击进入[授权平台](https://gpm.host900.com/)。 13 | 14 | 2. 特殊需求请发送邮件到:`arraykeys@gmail.com` 15 | 16 |
17 | 18 | [Manual](https://snail.gitee.io/proxy/manual/#/?id=_11-cluster) | [中文简介](/README_ZH.md)| [参考手册](https://snail.gitee.io/proxy/manual/zh/#/?id=_11%e9%9b%86%e7%be%a4%e7%ae%a1%e7%90%86) 19 | 20 | 手册同时适用于命令行goproxy和proxyadmin面板,控制面板只是命令行goproxy的界面化,使用参数完全一样。 21 | 22 | ## 国内下载 23 | 24 | 请在github的下载链接前面加上: `https://mirrors.goproxyauth.com/` 。 25 | 26 | 比如`v1.4`的github下载链接是: 27 | 28 | `https://github.com/snail007/proxy-admin-cluster/releases/download/v1.4/proxy-admin_linux-amd64.tar.gz` 29 | 30 | 那么国内下载地址就是: 31 | 32 | `https://mirrors.goproxyauth.com/https://github.com/snail007/proxy-admin-cluster/releases/download/v1.4/proxy-admin_linux-amd64.tar.gz` 33 | 34 | 此地址也适用于wget,curl直接命令行下载。 35 | 36 | 37 | ## 加入我们 38 | 39 | 欢迎加官方群交流,QQ群:`189618940` [电报群](https://t.me/snail007_goproxy) 40 | 41 | ## 预览 42 | 43 | ### 概况 44 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/cluster1.png) 45 | 46 | ### 机器组管理 47 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/cluster2.png) 48 | 49 | ### 服务管理 50 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/cluster3.png) 51 | 52 | ### 节点管理 53 | 状态解释: 54 | 在线:该组的所有服务在该节点上运行正常。 55 | 异常:该组的服务在该节点上运行有失败的,可以点击“异常”查看具体什么服务运行失败和失败信息。 56 | 离线:节点不在线,或者节点无法和控制面板通讯。 57 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/cluster4.png) 58 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/cluster5.png) 59 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/cluster6.png) 60 | 61 | ## 开始使用 62 | 63 | ### 视频安装教程 64 | 65 | [点击观看安装视频](https://space.bilibili.com/472844633/channel/detail?cid=88254) 66 | 67 | ### 快速安装 68 | 69 | 如果你的VPS是 linux 64位的系统,那么只需要执行下面一句,就可以完成自动安装和配置. 70 | 71 | 提示:所有操作需要root权限。 72 | 73 | ```shell 74 | bash -c "$(curl -s -L https://mirrors.goproxyauth.com/https://raw.githubusercontent.com/snail007/proxy-admin-cluster/master/install_auto.sh)" @ cn 75 | ``` 76 | 77 | 安装完成,配置目录是/etc/gpa,更详细的使用方法请参考上面的手册目录,进一步了解你想要使用的功能。 78 | 79 | 如果安装失败或者你的vps不是linux64位系统,请按照下面的手动安装步骤安装。 80 | 81 | ### 手动安装 82 | 83 | 选择适合你的系统的文件并下载,[点击进入下载](https://github.com/snail007/proxy-admin-cluster/releases) 84 | 85 | 国内请参考上面的国内下载。 86 | 87 | ### Linux && MacOS 88 | 89 | root账号执行: 90 | 91 | `cd 进入“有proxy-admin的目录”` 92 | 93 | `./proxy-admin install` 94 | 95 | 96 | ### Windows 97 | 98 | 1. 使用助手工具安装 99 | 100 | 管理员打开 goproxy_helper.exe,可以一键安装/卸载/重启服务。 101 | 102 | ![](https://mirrors.host900.com/https://github.com/snail007/proxy-admin-cluster/blob/master/res/images/gh.png) 103 | 104 | 2. 命令行安装 105 | 106 | 管理员账号执行cmd.exe 107 | 108 | `cd 进入“有proxy-admin的目录”` 109 | 110 | `proxy-admin.exe install` 111 | 112 | ### 访问 113 | 114 | 安装成功后,打开浏览器访问:http://127.0.0.1:32080 , 首次默认账号是root,密码是123,登录后记得第一时间修改。 115 | 116 | 配置文件路径: 117 | 118 | Linux && MacOS 位于 /etc/gpa/app.toml 119 | 120 | Windows 位于 C:\gpa\app.toml 121 | 122 | 可以配置监听的端口和日志记录。 123 | 124 | ## 卸载服务 125 | 126 | ### Linux && MacOS 127 | 128 | root账号执行: 129 | 130 | `cd 进入“有proxy-admin的目录”` 131 | 132 | `./proxy-admin uninstall` 133 | 134 | 135 | ### Windows 136 | 137 | 管理员账号执行cmd.exe 138 | 139 | `cd 进入“有proxy-admin的目录”` 140 | 141 | `proxy-admin.exe uninstall` 142 | 143 | ## 服务管理 144 | 145 | 下面的操作必须是已经安装了服务才能使用。 146 | 147 | 管理服务有两种方式: 148 | 149 | 1.使用程序 proxy-admin 可以管理服务。 150 | 151 | proxy-admin install 安装为系统服务 152 | 153 | proxy-admin uninstall 卸载服务 154 | 155 | proxy-admin start 启动服务 156 | 157 | proxy-admin stop 停止服务 158 | 159 | proxy-admin restart 重启服务 160 | 161 | proxy-admin backup 备份数据 162 | 163 | proxy-admin restore 恢复备份的数据 164 | 165 | 2.使用系统服务管理工具管理。 166 | 167 | proxy-admin 系统服务名称是:proxyadmin 168 | 169 | Linux下面可以通过systemctl管理。 170 | 171 | MacOS下面可以通过命令管理。 172 | 173 | Windows下面可以使用系统的服务管理器管理。 174 | 175 | ## HTTP接口操作面板数据 176 | 控制面板对登录模式默认是验证码登录模式,还可以在配置文件开启token模式,这样登录可以同时支持验证码和token模式,利用token模式,你可以轻松模拟登录面板,然后你的程序通过http就能像在面板一样操作数据,还能实现后台没有的功能哟,比如批量导入,启动,停止等操作。 177 | 178 | 开启token模式步骤 179 | 180 | 1.修改控制面板配置文件app.toml,[login]下面的 181 | ```ini 182 | enable_token=true 183 | token="xxx" 184 | ``` 185 | 提醒:`xxx`是具体的token,应该设置为一个私密的英文数字字符串,长度不限制,建议32个左右。 186 | 187 | 2.请求登录接口的时候 188 | 1. 需要设置一个HTTP头部:`X-Requested-With: XMLHttpRequest`,这样才能正常登录。 189 | 2. 登录表单数据除了用户名和密码,还要一个token字段,值是配置文件里面[login]设置的token。 190 | 191 | 3.要操面板的某个功能的数据,请自行使用Chrome浏览器开启开发者工具,观察面板操作的对应接口,请求表单数据字段情况。 192 | 193 | ## 升级更新 194 | 195 | ### Linux 196 | 用`root`打开一个终端。 197 | 198 | ```shell 199 | proxy-admin update 200 | ``` 201 | 202 | 已经安装了最新的版本,默认不会更新,如果想强制更新加上 -f 参数即可。 203 | 204 | ```shell 205 | proxy-admin update -f 206 | ``` 207 | 208 | ### Windows 209 | 用`管理员`权限打开命令提示符窗口。 210 | 211 | ```bat 212 | c:\ 213 | cd gpa 214 | proxy-admin update 215 | ``` 216 | 217 | 已经安装了最新的版本,默认不会更新,如果想强制更新加上 -f 参数即可。 218 | 219 | ```shell 220 | c:\ 221 | cd gpa 222 | proxy-admin update -f 223 | ``` 224 | 225 | ## 鸣谢 226 | 227 | [笔下光年](https://gitee.com/yinqi) 提供的后台模板给我们带来舒畅的交互体验. 228 | -------------------------------------------------------------------------------- /install_auto.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [ "$1" == "cn" ]; then 3 | MIRROR="https://mirrors.goproxyauth.com/" 4 | fi 5 | F="proxy-admin_linux-amd64.tar.gz" 6 | set -e 7 | if [ -e /tmp/proxy ]; then 8 | rm -rf /tmp/proxy 9 | fi 10 | mkdir /tmp/proxy 11 | cd /tmp/proxy 12 | echo -e "\n>>> downloading ... $F\n" 13 | 14 | manual="https://snail.gitee.io/proxy/manual/zh/" 15 | LAST_VERSION=$(curl --silent "${MIRROR}https://api.github.com/repos/snail007/proxy-admin-cluster/releases/latest" | grep -Po '"tag_name": *"\K.*?(?=")') 16 | wget -t 1 "${MIRROR}https://github.com/snail007/proxy-admin-cluster/releases/download/${LAST_VERSION}/$F" 17 | 18 | echo -e ">>> installing ... \n" 19 | #install proxy-admin 20 | tar zxvf $F >/dev/null 2>&1 21 | chmod +x proxy-admin 22 | set +e 23 | ./proxy-admin uninstall >/dev/null 2>&1 24 | set -e 25 | ./proxy-admin install 26 | rm $F 27 | set +e 28 | systemctl status proxyadmin & 29 | set -e 30 | sleep 2 31 | echo -e "\n>>> install done, thanks for using snail007/proxy-admin\n" 32 | echo -e ">>> install path /usr/bin/proxy\n" 33 | echo -e ">>> configuration path /etc/proxy\n" 34 | echo -e ">>> uninstall just exec : rm /usr/bin/proxy && rm /etc/proxy\n" 35 | echo -e ">>> please visit : http://YOUR_IP:32080/ username: root, password: 123\n" 36 | echo -e ">>> How to using? Please visit : $manual\n" 37 | -------------------------------------------------------------------------------- /res/images/cluster1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snail007/proxy-admin-cluster/8b987e11f82fac7cb0013d0fccf82d98e162d1d9/res/images/cluster1.png -------------------------------------------------------------------------------- /res/images/cluster2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snail007/proxy-admin-cluster/8b987e11f82fac7cb0013d0fccf82d98e162d1d9/res/images/cluster2.png -------------------------------------------------------------------------------- /res/images/cluster3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snail007/proxy-admin-cluster/8b987e11f82fac7cb0013d0fccf82d98e162d1d9/res/images/cluster3.png -------------------------------------------------------------------------------- /res/images/cluster4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snail007/proxy-admin-cluster/8b987e11f82fac7cb0013d0fccf82d98e162d1d9/res/images/cluster4.png -------------------------------------------------------------------------------- /res/images/cluster5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snail007/proxy-admin-cluster/8b987e11f82fac7cb0013d0fccf82d98e162d1d9/res/images/cluster5.png -------------------------------------------------------------------------------- /res/images/cluster6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snail007/proxy-admin-cluster/8b987e11f82fac7cb0013d0fccf82d98e162d1d9/res/images/cluster6.png --------------------------------------------------------------------------------