# This file contains all environment variables for the Airflow-based deployment. # Copy this file to .env in the same directory and fill in your production values. # This file is used by `generate_envoy_config.py` and `docker-compose-ytdlp-ops.yaml`. # --- Common Configuration --- # A unique name for this server instance, used as a key in Redis. # This is hardcoded in the docker-compose file but can be overridden here. SERVER_IDENTITY=ytdlp-ops-airflow-service # Redis connection details for proxy and account state management. REDIS_HOST=redis REDIS_PORT=6379 REDIS_PASSWORD=redis_pwd_K3fG8hJ1mN5pQ2sT # --- Airflow Database Configuration --- # The password for the PostgreSQL database used by Airflow. # This should be a secure, randomly generated password. POSTGRES_PASSWORD=pgdb_pwd_A7bC2xY9zE1wV5uP # The password for the Airflow web UI admin user. AIRFLOW_ADMIN_PASSWORD=admin_pwd_X9yZ3aB1cE5dF7gH # --- 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. # Example: CAMOUFOX_PROXIES="socks5://user:pass@p.webshare.io:80,socks5://user:pass@p.webshare.io:81" CAMOUFOX_PROXIES="socks5://your_proxy_user:your_proxy_pass@proxy.example.com:1080,socks5://your_proxy_user:your_proxy_pass@proxy.example.com:1081" # 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 # --- 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=30 ACCOUNT_COOLDOWN_DURATION_MIN=60