Merge branch 'main' of https://git.dr2.site/penguinehis/DragonCore-Modules
This commit is contained in:
44
README.md
44
README.md
@@ -1,44 +0,0 @@
|
||||
# DragonCore Generic Bridge API
|
||||
|
||||
This bridge is for Linux SSH/V2Ray/Xray servers that do **not** run DragonCoreSSH-NewWEB. It exposes a small HTTP API compatible with the DragonCore Panel server connector and keeps itself running through systemd.
|
||||
|
||||
## Install from GitHub
|
||||
|
||||
Replace the repository URL with your own hosted bridge repository:
|
||||
|
||||
```bash
|
||||
curl -fsSL https://raw.githubusercontent.com/YOUR_USER/dragoncore-bridge/main/install_bridge.sh | bash -s -- \
|
||||
--repo https://github.com/YOUR_USER/dragoncore-bridge.git \
|
||||
--branch main \
|
||||
--port 6969 \
|
||||
--open-firewall yes
|
||||
```
|
||||
|
||||
The installer prints the panel login data at the end:
|
||||
|
||||
```text
|
||||
API Type : Bridge Generic
|
||||
IP : SERVER_IP
|
||||
API Port : 6969
|
||||
User : admin
|
||||
Password : GENERATED_PASSWORD
|
||||
Legacy token/Senha header: GENERATED_TOKEN
|
||||
```
|
||||
|
||||
## What it does
|
||||
|
||||
- Compiles the Go API.
|
||||
- Creates `/etc/dragoncore-bridge/config.json`.
|
||||
- Creates a `dragoncore-bridge` systemd service.
|
||||
- Opens the selected TCP port in UFW/firewalld/iptables when `--open-firewall yes` is used.
|
||||
- Supports SSH user create/delete/expiry.
|
||||
- Supports VLESS client add/remove in `/usr/local/etc/xray/config.json`, `/etc/xray/config.json`, and `/etc/v2ray/config.json`.
|
||||
- Supports both SSHPlus-style `/root/usuarios.db` + `/etc/SSHPlus/senha` and DragonCore-style `/opt/DragonCore/menu.php` when present.
|
||||
|
||||
## Service commands
|
||||
|
||||
```bash
|
||||
systemctl status dragoncore-bridge
|
||||
journalctl -u dragoncore-bridge -f
|
||||
systemctl restart dragoncore-bridge
|
||||
```
|
||||
Reference in New Issue
Block a user