# This file is managed by Ansible.
HOSTNAME="{{ inventory_hostname }}"
SERVICE_ROLE={{ service_role }}
SERVER_IDENTITY={{ server_identity }}

# Passwords
REDIS_PASSWORD="{{ redis_password }}"
POSTGRES_PASSWORD="{{ postgres_password }}"

# Common settings
AIRFLOW_UID={{ airflow_uid | default(1003) }}
AIRFLOW_GID=0
YTDLP_BASE_PORT={{ ytdlp_base_port }}

# Master-specific settings
{% if 'master' in service_role %}
AIRFLOW_ADMIN_PASSWORD="{{ airflow_admin_password }}"
MINIO_ROOT_USER=admin
MINIO_ROOT_PASSWORD=0153093693-0009
{% endif %}

# Worker-specific settings
{% if 'worker' in service_role %}
MASTER_HOST_IP={{ master_host_ip }}
REDIS_HOST={{ master_host_ip }}
REDIS_PORT={{ redis_port }}

# --- Envoy & Worker Configuration ---
ENVOY_PORT={{ envoy_port }}
ENVOY_ADMIN_PORT={{ envoy_admin_port }}
MANAGEMENT_SERVICE_PORT={{ management_service_port }}
YTDLP_WORKERS=1

# --- Camoufox (Browser) Configuration ---
CAMOUFOX_PROXIES="{{ camoufox_proxies }}"
VNC_PASSWORD="{{ vnc_password }}"
CAMOUFOX_BASE_VNC_PORT={{ camoufox_base_vnc_port }}
CAMOUFOX_PORT=12345

# --- General Proxy Configuration ---
SOCKS5_SOCK_SERVER_IP=172.17.0.1

# --- Account Manager Configuration ---
ACCOUNT_ACTIVE_DURATION_MIN=7
ACCOUNT_COOLDOWN_DURATION_MIN=30
{% endif %}
