docker-warp-socks5/entrypoint.sh

14 lines
423 B
Bash
Raw Normal View History

2024-02-13 12:14:39 +01:00
#!/bin/sh
mkdir -p /opt/wgcf
wgcf register --accept-tos --config /opt/wgcf/wgcf-account.toml
wgcf generate --config /opt/wgcf/wgcf-account.toml
mv wgcf-profile.conf /opt/wireproxy.conf
2023-05-01 20:41:34 +02:00
2024-02-13 12:14:39 +01:00
echo -e "\n[Socks5]\nBindAddress = 0.0.0.0:40000" >>/opt/wireproxy.conf
2023-05-01 20:41:34 +02:00
2024-02-13 12:14:39 +01:00
if [ -n "$SOCKS5_USERNAME" ]; then
echo -e "\nUsername = $SOCKS5_USERNAME\nPassword = $SOCKS5_PASSWORD" >>/opt/wireproxy.conf
fi
wireproxy -c /opt/wireproxy.conf