> nginx-mtproxy#
This image integrates nginx and mtproxy+tls to achieve traffic obfuscation and uses whitelist mode to deal with firewall detection.
secret=$(head -c 16 /dev/urandom | xxd -ps)
tag="12345678901234567890121231231231"
domain="XXXX.com"
docker run --name nginx-mtproxy -d -e tag="$tag" -e secret="$secret" -e domain="$domain" -e ip_white_list="OFF" -p 80:80 -p 443:443 ellermister/nginx-mtproxy:latest
The optional parameter for ip_white_list is:
- IP allows access to a single IP
- IPSEG allows access to an IP range
- OFF allows access to all IPs
See detailed configuration in Docker link
> Koishi Bot#
docker run --name koishi -d -v /home/docker/koishi:/koishi -e TZ=Asia/Shanghai -p 5140:5140 koishijs/koishi
When setting up reverse proxy, websocket needs to be set simultaneously
location /
{
proxy_pass http://127.0.0.1:5140;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
#Persistent connection configuration
proxy_connect_timeout 30s;
proxy_read_timeout 86400s;
proxy_send_timeout 30s;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
add_header Cache-Control no-cache;
}