VelocityWebConsole
通过 Web 浏览器在任何地方控制你的 Velocity 代理。 无需 SSH,无需外部 Web 服务器——只需放入插件并打开一个 URL。非常适合没有直接终端访问权限的 VPS 环境。
注意:此插件为新版本且处于积极开发中,预期会出现错误。请前往提供的 Discord 频道的 #plugin-help 报告问题。
? 超级简单的设置与使用
- 无需外部服务器 — 插件自带 Web 服务器。无需安装或配置 Apache、nginx 或数据库。
- 三步完成 — 将 jar 文件放入
plugins/ 目录,重启 Velocity,然后在浏览器中打开 http://YOUR_SERVER_IP:25580/。就是这样。
- 合理的默认值 — 端口为 25580,日志文件自动检测。除非你想更改端口或绑定到 localhost,否则你只需要编辑
config.properties。
- 首次登录 — 使用 admin / admin 登录,在提示时设置新密码,即可进入。如果需要,可以从 Users(用户)页面添加更多用户(admin/viewer)。
✨ 功能
- 实时控制台视图 — 实时查看代理的控制台输出,直接流式传输到浏览器。
- 执行命令 — 从 Web UI 执行任何 Velocity 控制台命令。
- 用户管理 — 创建多个具有 Admin(完全控制)或 Viewer(只读控制台,无法执行命令)角色的用户。
- 默认安全 — 密码以哈希形式(PBKDF2)存储在
users.json 中。
- 支持 HTTPS — 通过 TLS 提供控制台服务。在配置中设置
use_https=true 并提供密钥库(PKCS12 或 JKS)。为你的域名使用来自 Let's Encrypt(或其他 CA)的证书,以避免浏览器出现“不安全”警告;自签名证书也可以使用,但需要在每个浏览器中点击一次“高级 → 继续”。使用 HTTPS 时,会话 cookie 为 Secure,响应发送 HSTS,使浏览器坚持使用 HTTPS。可选的 HTTP 重定向:设置 redirect_http_port,这样用户输入 http://yourserver:25580 时会被重定向到 https://yourserver:25581(请参阅配置文件中的注释)。
⚙️ 配置
编辑 plugins/velocitywebconsole/config.properties 并重启代理以使更改生效。
| 选项 |
默认值 |
描述 |
port |
25580 |
Web 控制台监听的端口(如果 use_https=true 则为 HTTPS,否则为 HTTP)。 |
bind_address |
0.0.0.0 |
0.0.0.0 = 所有接口,127.0.0.1 = 仅限 localhost。 |
log_file |
(自动) |
如果自动检测失败,Velocity 日志文件的路径(例如 logs/latest.log)。 |
use_https |
false |
通过 HTTPS 提供服务(需要 keystore_path 和 keystore_password)。 |
keystore_path |
(空) |
密钥库文件的路径 (.p12/.pfx 或 .jks)。相对路径 = 位于插件数据目录下。 |
keystore_password |
(空) |
密钥库密码。 |
keystore_type |
PKCS12 |
PKCS12 或 JKS。 |
redirect_http_port |
0 |
使用 HTTPS 时:重定向到 HTTPS 的 HTTP 端口,以便用户可以在 URL 中省略 https://。将 port 设置为 HTTPS 端口(例如 25581),将 redirect_http_port 设置为用户输入的端口(例如 25580)。0 = 禁用。 |
? 安全提示
- 首次使用时更改默认密码。
- 如果你只需要从自己的机器访问,请优先使用
bind_address=127.0.0.1 并使用 SSH 端口转发。
- 不要在没有防火墙或强密码的情况下将 Web 控制台端口暴露给互联网。
? 要求
- Velocity 3.4.x - 3.5.x 代理,基于 3.4.x API 构建(已在 3.5.x 上测试)
- Java 17+
VelocityWebConsole
Control your Velocity proxy from anywhere via a web browser. No SSH, no external web server — just drop the plugin and open a URL. Perfect for VPS setups where you don't have direct terminal access.
NOTE THIS PLUGIN IS NEW AND UNDER ACTIVE DEVELOPMENT, EXPECT BUGS. PLEASE REPORT THEM TO THE PROVIDED DISCORD CHANNEL UNDER #plugin-help
? SUPER Easy setup & use
- No external server — The plugin runs its own web server. No Apache, nginx, or database to install or configure.
- Three steps — Drop the jar in
plugins/, restart Velocity, then open http://YOUR_SERVER_IP:25580/ in a browser. That’s it.
- Sensible defaults — Port 25580, log file auto-detected. You only need to edit
config.properties if you want a different port or to bind to localhost.
- First login — Log in with admin / admin, set a new password when prompted, and you’re in. Add more users (admin/viewer) from the Users page if you like.
✨ Features
- Live console view — See your proxy's console output in real time, streamed straight to the browser.
- Run commands — Execute any Velocity console command from the web UI.
- User management — Create multiple users with Admin (full control) or Viewer (read-only console, no command execution) roles.
- Secure by default — Passwords are stored hashed (PBKDF2) in
users.json.
- HTTPS support — Serve the console over TLS. Set
use_https=true in config and provide a keystore (PKCS12 or JKS). Use a certificate from Let's Encrypt (or another CA) for your domain to avoid browser "Not secure" warnings; self-signed certs work but require clicking "Advanced → Proceed" once per browser. When using HTTPS, the session cookie is Secure and responses send HSTS so browsers stick to HTTPS. Optional HTTP redirect: set redirect_http_port so users can type http://yourserver:25580 and get redirected to https://yourserver:25581 (see config comments).
⚙️ Configuration
Edit plugins/velocitywebconsole/config.properties and restart the proxy for changes to take effect.
| Option |
Default |
Description |
port |
25580 |
Port the web console listens on (HTTPS if use_https=true, else HTTP). |
bind_address |
0.0.0.0 |
0.0.0.0 = all interfaces, 127.0.0.1 = localhost only. |
log_file |
(auto) |
Path to Velocity's log file if auto-detect fails (e.g. logs/latest.log). |
use_https |
false |
Serve over HTTPS (requires keystore_path and keystore_password). |
keystore_path |
(empty) |
Path to keystore file (.p12/.pfx or .jks). Relative = under plugin data dir. |
keystore_password |
(empty) |
Keystore password. |
keystore_type |
PKCS12 |
PKCS12 or JKS. |
redirect_http_port |
0 |
When using HTTPS: HTTP port that redirects to HTTPS so users can type the URL without https://. Set port to the HTTPS port (e.g. 25581) and redirect_http_port to the port users type (e.g. 25580). 0 = disabled. |
? Security tips
- Change the default password on first use.
- Prefer
bind_address=127.0.0.1 and use SSH port forwarding if you only need access from your own machine.
- Don't expose the web console port to the internet without a firewall or strong passwords.
? Requirements
- Velocity 3.4.x - 3.5.x proxy, built on 3.4.x API (tested on 3.5.x)
- Java 17+
评论 0
登录后参与评分
还没有评论,来抢沙发吧