HOSTNAME="dl001"
MASTER_HOST_IP=89.253.221.173
REDIS_PASSWORD="rOhTAIlTFFylXsjhqwxnYxDChFc"
POSTGRES_PASSWORD="pgdb_pwd_A7bC2xY9zE1wV5uP"
AIRFLOW_UID=1003
REDIS_HOST=89.253.221.173
REDIS_PORT=52909
SERVER_IDENTITY=ytdlp-ops-service-worker-dl001

# The role of the ytdlp-ops-server instance.
# 'management': Runs only state management tasks (proxy/account status). Use for the master deployment.
# 'worker' or 'all-in-one': Runs token generation tasks. Use for dedicated worker deployments.
SERVICE_ROLE=worker

# --- Envoy & Worker Configuration ---
# The public-facing port for the Envoy load balancer that fronts the WORKERS.
ENVOY_PORT=9080
# The port for Envoy's admin/stats interface.
ENVOY_ADMIN_PORT=9901
# The public-facing port for the standalone MANAGEMENT service.
MANAGEMENT_SERVICE_PORT=9091
# The number of Python server workers to run.
# Set to 1 to simplify debugging. Multi-worker mode is experimental.
YTDLP_WORKERS=1
# The starting port for the Python workers. They will use sequential ports (e.g., 9090, 9091, ...).
YTDLP_BASE_PORT=9090

# --- Camoufox (Browser) Configuration ---
# Comma-separated list of SOCKS5 proxies to be used by Camoufox instances.
# Each proxy will get its own dedicated browser instance (1:1 mapping).
# Example: CAMOUFOX_PROXIES="socks5://user:pass@p.webshare.io:1081,socks5://user:pass@p.webshare.io:1082"
CAMOUFOX_PROXIES="socks5://sslocal-rust-1087:1087"

# Password for VNC access to the Camoufox browser instances.
VNC_PASSWORD="vnc_pwd_Z5xW8cV2bN4mP7lK"

# The starting port for VNC access. Ports will be assigned sequentially (e.g., 5901, 5902, ...).
CAMOUFOX_BASE_VNC_PORT=5901

# The internal port used by Camoufox for its WebSocket server. Usually does not need to be changed.
CAMOUFOX_PORT=12345

# Legacy mode: Use single camoufox instance for all proxies
# CAMOUFOX_LEGACY_MODE=false

# Resource monitoring configuration
CAMOUFOX_MAX_MEMORY_MB=2048
CAMOUFOX_MAX_CPU_PERCENT=80
CAMOUFOX_MAX_CONCURRENT_CONTEXTS=8
CAMOUFOX_HEALTH_CHECK_INTERVAL=30

# Mapping configuration (proxy port → camoufox instance)
# socks5://proxy:1081 → camoufox-1:12345
# socks5://proxy:1082 → camoufox-2:12345
# socks5://proxy:1083 → camoufox-3:12345
# socks5://proxy:1084 → camoufox-4:12345

# --- General Proxy Configuration ---
# A general-purpose SOCKS5 proxy that can be used alongside Camoufox proxies.
# This should be the IP address of the proxy server accessible from within the Docker network.
# '172.17.0.1' is often the host IP from within a container.
SOCKS5_SOCK_SERVER_IP=172.17.0.1

# --- Account Manager Configuration ---
# Account cooldown parameters (values are in minutes).
ACCOUNT_ACTIVE_DURATION_MIN=7
ACCOUNT_COOLDOWN_DURATION_MIN=30

MINIO_ROOT_USER=admin
MINIO_ROOT_PASSWORD=0153093693-0009
AIRFLOW_GID=0
