---
#-----------------------------------------------------------------
# DEEPFLOW SERVER
#-----------------------------------------------------------------
deepflow_enabled: true
deepflow_deploy_profile: lite
deepflow_storage_mode: short_ttl

deepflow_stack_dir: /opt/deepflow-server
deepflow_data: /data/deepflow
deepflow_env_file: /etc/default/deepflow-server
deepflow_compose_file: "{{ deepflow_stack_dir }}/docker-compose.yml"
deepflow_server_config_dir: "{{ deepflow_stack_dir }}/server.yaml.d"
deepflow_server_config_file: "{{ deepflow_server_config_dir }}/server.yaml"

# images (pin to specific tags before production)
deepflow_server_image: deepflowio/deepflow-server-ce:latest
deepflow_app_image: deepflowio/deepflow-app-ce:latest

# exposed ports
deepflow_server_grpc_port: 20035
deepflow_server_http_port: 20417
deepflow_app_port: 20880

# backend endpoints (provided by dedicated roles)
deepflow_clickhouse_addr: host.docker.internal:19000
deepflow_clickhouse_database: deepflow
deepflow_s3_endpoint: http://host.docker.internal:19090
deepflow_s3_bucket: deepflow
deepflow_s3_access_key: deepflow
deepflow_s3_secret_key: DeepFlow.S3.ChangeMe
deepflow_s3_region: us-east-1
deepflow_s3_enabled: true

deepflow_mysql_addr: host.docker.internal:13306
deepflow_mysql_user: deepflow
deepflow_mysql_password: DeepFlow.MySQL.ChangeMe
deepflow_mysql_database: deepflow

# Lightweight retention handled by DeepFlow server config.
deepflow_clickhouse_retention_hours: 24
deepflow_l4_log_ttl_hour: "{{ deepflow_clickhouse_retention_hours }}"
deepflow_l7_log_ttl_hour: "{{ deepflow_clickhouse_retention_hours }}"
deepflow_flow_metrics_ttl_hour: "{{ deepflow_clickhouse_retention_hours }}"
deepflow_metrics_ttl_hour: "{{ deepflow_clickhouse_retention_hours }}"
deepflow_prometheus_ttl_hour: "{{ deepflow_clickhouse_retention_hours }}"

# Optional server config overrides.
deepflow_server_listen_ip: 0.0.0.0
deepflow_server_extra_env: {}
deepflow_server_extra_labels: {}
