/
/
/
1# Frigate Environment Configuration
2# Auto-generated by Ansible Runner Role
3
4# Core Environment Variables (Required by Docker Compose)
5TZ={{ runner_timezone }}
6
7# MQTT Configuration
8FRIGATE_MQTT_HOST={{ frigate_mqtt_host }}
9FRIGATE_MQTT_PORT={{ frigate_mqtt_port }}
10{% if frigate_mqtt_username %}
11FRIGATE_MQTT_USERNAME={{ frigate_mqtt_username }}
12{% endif %}
13{% if frigate_mqtt_password %}
14FRIGATE_MQTT_PASSWORD={{ frigate_mqtt_password }}
15{% endif %}
16
17# Hardware Acceleration Configuration
18FRIGATE_HWACCEL={{ frigate_hardware_acceleration }}
19{% if frigate_hardware_acceleration in ['nvdec', 'nvenc'] %}
20# NVIDIA GPU Configuration
21NVIDIA_DRIVER_CAPABILITIES=compute,utility,video
22NVIDIA_VISIBLE_DEVICES=all
23CUDA_VISIBLE_DEVICES=0
24FRIGATE_GPU_STATS=true
25{% elif frigate_hardware_acceleration == 'vaapi' %}
26# VAAPI Configuration
27LIBVA_DRIVER_NAME=radeonsi
28LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri
29{% elif frigate_hardware_acceleration == 'qsv' %}
30# Intel QSV Configuration
31LIBVA_DRIVER_NAME=iHD
32LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri
33{% endif %}
34
35# Logging Configuration
36FRIGATE_LOG_LEVEL={{ frigate_log_level }}
37
38# Performance Limits
39FRIGATE_MEMORY_LIMIT={{ frigate_memory_limit }}
40FRIGATE_CPU_LIMIT={{ frigate_cpu_limit }}
41
42# Storage Paths
43FRIGATE_CONFIG_DIR={{ frigate_config_dir }}
44FRIGATE_DATA_DIR={{ frigate_data_dir }}
45
46# Network Ports
47FRIGATE_PORT={{ frigate_port }}
48FRIGATE_RTMP_PORT={{ frigate_rtmp_port }}
49FRIGATE_RTSP_PORT={{ frigate_rtsp_port }}
50
51# User Settings
52PUID={{ runner_uid }}
53PGID={{ runner_gid }}
54
55# Detection Configuration
56FRIGATE_PLUS_API_KEY={{ vault_runner.frigate_plus_api_key | default('') }}
57FRIGATE_MODEL_PATH=/data/model_cache
58FRIGATE_MAX_THREADS={{ ansible_processor_vcpus | default(4) }}
59
60# Performance Tuning
61FRIGATE_DB_CACHE_SIZE={% if frigate_hardware_acceleration in ['nvdec', 'nvenc'] %}256{% else %}128{% endif %}
62FRIGATE_STATS_RETENTION_DAYS=30