future.porn { root * /usr/share/futureporn file_server # Define the upstream servers for load balancing reverse_proxy {% for host in groups['our'] %}{{ hostvars[host]['internal_ip'] }}:{{our_server_port}} {% endfor %} { # Load balancing policy (optional, defaults to "random") lb_policy round_robin # Health checks (optional) health_uri /health health_interval 10s health_timeout 5s } handle_errors { respond "💥 Error ~ {err.status_code} {err.status_text}" } }