Docker container with tg-ws-proxy from Flowseal - with my little changes (CHECK DESCRIPTION)
5.8K
Source code: https://github.com/LordArrin/tg-ws-proxy-docker
Docker image for personal use. All credits to original author https://github.com/Flowseal/tg-ws-proxy
I just little changed syntax:
| Args | Default | Description |
|---|---|---|
PROXY_PORT | 1443 | Proxy port |
PROXY_HOST | 0.0.0.0 | Proxy host |
PROXY_SECRET | random | 32 hex characters secret for client authorization. (Command to generate: openssl rand -hex 16) |
PROXY_DC_IPS | 2:149.154.167.220 4:149.154.167.220 | Target IP of Telegram's data centers |
PROXY_BUF | 4096 | Buffer size in KB |
PROXY_POOL_SIZE | 2 | The number of prepared connections for each DC |
NO_CFPROXY | false | Disable Cloudflare proxying attempt. Read more here |
CFPROXY_DOMAIN | Specify your domain for proxying through Cloudflare. Read more here | |
CFPROXY_WORKER_DOMAIN | Specify your CF worker for proxying through Cloudflare. | |
KEEPALIVE | false | Enable WS keepalive pings to prevent connections from closing when idle. Experimental option, disabled by default. Requires configuring CF worker for this to work. |
Example config:
tg-ws-proxy:
image: lordarrin/tg-ws-proxy:latest
container_name: tg-ws-proxy
restart: unless-stopped
network_mode: host
environment:
- PROXY_HOST=192.168.1.1
- PROXY_PORT=1443
- PROXY_SECRET=
- CFPROXY_DOMAIN=
- CFPROXY_WORKER_DOMAIN=rough-unit-****.******.workers.dev
security_opt:
- no-new-privileges:true
read_only: true
tmpfs:
- /tmp:noexec,nosuid,size=64m
- /home/app/.cache:noexec,nosuid,size=32m
deploy:
resources:
limits:
memory: 384M
cpus: '1'
To generate a secret you can use:
openssl rand -hex 16
192.168.1.1 (or your own)1443 (or your own)Content type
Image
Digest
sha256:a338c7ac5…
Size
54 MB
Last updated
1 day ago
docker pull lordarrin/tg-ws-proxy