bright.futureporn.net {
	root * /usr/share/futureporn
	file_server

	# Define the upstream servers for load balancing
	reverse_proxy {% for host in groups['bright'] %}{{ hostvars[host]['internal_ip'] }}:4000 {% endfor %} {
		# Load balancing policy (optional, defaults to "random")
		lb_policy round_robin


		# Health checks (optional)
		health_uri /api/health
		health_interval 10s
		health_timeout 5s
	}

	handle_errors {
		respond "💥 Error ~ {err.status_code} {err.status_text}"
	}


}