Skip to content

About

No description, website, or topics provided.

Resources

Stars

186 stars

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Blue Knight Gate:

A VLESS / VMess / Trojan / Shadowsocks / XHTTP panel that runs on Free Hosts (Pterodactyl) using the one port your server is given.

Follow Blue Knight

Setup on Free Hosts

  1. Create a Node.js server (Node 18 or newer, 20 recommended).
  2. In File Manager, upload index.js, package.json, package-lock.json and the assets/ folder. Don't upload node_modules; it installs itself.
  3. Startup file: index.js (the start command is node index.js).
  4. Start the server. The panel reads your port from SERVER_PORT automatically; you don't need to set it.
  5. On first start, the panel downloads sing-box and Xray-core from GitHub, so give it a minute.
  6. Open http://<server-ip>:<port>/knight and create your panel password.
  7. Copy the configs or the subscription link into your client.

Keep the bk-data/ folder. It holds your password, UUID and the TLS certificate. If you delete it, every config and TLS pin changes and you'll have to re-import everything.

Configs (all on the same single port)

Config Works in
VLESS-WS / VLESS-WS-TLS all clients
VMess-WS / VMess-WS-TLS all clients
Trojan-WS / Trojan-WS-TLS all clients (Clash: use only Trojan-WS-TLS)
VLESS / VMess / Trojan HTTPUpgrade Xray, sing-box (Clash: VLESS and VMess only)
VLESS-gRPC / VLESS-gRPC-TLS Xray, sing-box, Clash Meta
Shadowsocks-WS Xray, sing-box, Clash Meta (v2ray-plugin websocket)
VLESS-XHTTP Xray clients only (v2rayN, v2rayNG, Hiddify with the Xray core)

Every config is named 💞t.me/BlueKnight_Net - <type> and is included in:

  • the normal base64 subscription
  • the "full" subscription
  • the Clash file
  • the sing-box file

TLS notes

  • TLS configs use a self-signed certificate.
  • Links carry allowInsecure=1 for older clients and pcs=<sha256> (a certificate pin) for Xray 26.2+.
  • The certificate renews itself before it expires. When that happens, re-import the subscription.

Settings (Startup → Variables, or .env)

All are optional.

Variable Default Meaning
UUID random, saved in bk-data Fixed UUID for all configs
PANEL_PASSWORD – Fixed panel password (8+ characters)
SUB_TOKEN random Fixed subscription token
SETUP_KEY – Extra key required the first time you create the password
DOMAIN server IP Domain or host used in links
ENABLE_TROJAN_WS_TLS true Trojan-WS-TLS
ENABLE_VMESS_HTTPUPGRADE / ENABLE_TROJAN_HTTPUPGRADE true HTTPUpgrade configs
ENABLE_VLESS_GRPC / ENABLE_VLESS_GRPC_TLS true gRPC configs
ENABLE_SS_WS true Shadowsocks-WS
ENABLE_XHTTP true VLESS-XHTTP
SS_METHOD / SS_PASSWORD aes-256-gcm / random Shadowsocks cipher and password. For 2022 ciphers, SS_PASSWORD must be a base64 key.
LINK_ALLOW_INSECURE true false removes allowInsecure=1 from links

Turn a config off by setting its variable to false, then restart the server.

Troubleshooting

  • XHTTP or Shadowsocks links are missing: Xray failed to download. Check the console, then restart.
  • TLS config won't connect in a new Xray app: re-import the subscription so the link has the current pcs= pin.
  • Configs changed after a restart: bk-data/ was deleted or reset. Set UUID, PANEL_PASSWORD and SUB_TOKEN as variables so they stay the same.
  • Testing: use Real delay or the URL test, not TCP ping.
  • Keep the subscription URL private. It contains your token.

Made by Blue Knight · Telegram · YouTube

About

No description, website, or topics provided.

Resources

Stars

186 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors