add upstream proxy support for creator

This commit is contained in:
kulikov0 committed 2026-05-30 15:39:12 +02:00
1 parent 48dcb04c77
commit 000447b77c
21 files changed
+713 -84

No files matched your search

+9
View File
@@ -9,3 +9,12 @@ VK_USER_IDS=
# Resource mode passed to spawned creators: default | moderate | unlimited.
RESOURCES=default
# Optional: route the joiner's egress through a local SOCKS5 proxy (a VPN client),
# so traffic exits via your VPS instead of this machine's IP. Forwarded to every
# spawned creator. Inside the container 127.0.0.1 is the CONTAINER, not the host -
# point at host.docker.internal (uncomment extra_hosts in docker-compose.yml) or a
# sidecar service name. The SOCKS5 inbound must support UDP ASSOCIATE.
UPSTREAM_SOCKS=
UPSTREAM_USER=
UPSTREAM_PASS=
+4
View File
@@ -5,6 +5,10 @@ services:
restart: unless-stopped
env_file:
- .env
# Uncomment to reach a SOCKS5 VPN client running on the host via
# UPSTREAM_SOCKS=host.docker.internal:<port>. On Linux this maps to the host.
# extra_hosts:
# - "host.docker.internal:host-gateway"
volumes:
# Cookies for spawned creators. Create empty `[]` files for platforms you
# don't use, or remove the corresponding line.
+3
View File
@@ -35,5 +35,8 @@ set -- \
[ -n "$TM_COOKIES" ] && set -- "$@" --tm-cookies "$TM_COOKIES"
[ -n "$WB_COOKIES" ] && set -- "$@" --wb-cookies "$WB_COOKIES"
[ -n "$DION_COOKIES" ] && set -- "$@" --dion-cookies "$DION_COOKIES"
[ -n "${UPSTREAM_SOCKS:-}" ] && set -- "$@" --upstream-socks "$UPSTREAM_SOCKS"
[ -n "${UPSTREAM_USER:-}" ] && set -- "$@" --upstream-user "$UPSTREAM_USER"
[ -n "${UPSTREAM_PASS:-}" ] && set -- "$@" --upstream-pass "$UPSTREAM_PASS"
exec /usr/local/bin/headless-vk-bot "$@"