Files
tg-ws-proxy-go/README.md
spatiumstas 7b92e6c8a9 0.3
2026-04-04 18:04:06 +03:00

1.8 KiB

TG WS Proxy Go for embedded devices

Install (KeeneticOS)

Repository:

curl -fsSL https://raw.githubusercontent.com/spatiumstas/feedly/main/add-repo.sh | sh

Package:

opkg install tg-ws-proxy

Install (manual)

Insert package link from Releases

opkg install %link%

Config

Main config file:

# Entware (KeeneticOS): /opt/etc/tg-ws-proxy.conf
# OpenWrt/generic opkg: /etc/tg-ws-proxy.conf

Minimal config example:

HOST=0.0.0.0
PORT=1443
SECRET=
LOG_LEVEL=0
DC_IP_DEFAULT=149.154.167.220
DC_IP_DEFAULT_POOL=""
EXTRA_ARGS=""

Notes:

  1. SECRET must be 32 hex chars. If empty, it is auto-generated during install.
  2. DC_IP_DEFAULT and DC_IP_DEFAULT_POOL are global defaults for implicit DC map (2,4).
  3. EXTRA_ARGS is for per-DC overrides and extra runtime flags.

Override examples:

# Per-DC pool override (DC2)
EXTRA_ARGS="--dc-ip-pool 2:149.154.175.50,149.154.167.220"

# Per-DC single IP override (DC203) + verbose logs
EXTRA_ARGS="--dc-ip 203:91.105.192.100 -v"

Run

# Entware (KeeneticOS)
/opt/etc/init.d/S61tg-ws-proxy start
/opt/etc/init.d/S61tg-ws-proxy status
/opt/etc/init.d/S61tg-ws-proxy restart
/opt/etc/init.d/S61tg-ws-proxy stop

# OpenWrt/generic opkg
/etc/init.d/tg-ws-proxy start
/etc/init.d/tg-ws-proxy status
/etc/init.d/tg-ws-proxy restart
/etc/init.d/tg-ws-proxy stop

Logs

If LOG_LEVEL=1, service logs are written to:

# Entware (KeeneticOS): /opt/var/log/tg-ws-proxy.log
# OpenWrt/generic opkg: /var/log/tg-ws-proxy.log

Build from profile

cp config/entware/aarch64-3.10.config .config
make package

Output package:

.build/tg-ws-proxy_<version>-1_<platform>_<target>.ipk

Remove

opkg remove tg-ws-proxy

Remove repository

rm /opt/etc/opkg/feedly.conf