{
	log {
		include http.handlers.reverse_proxy.health_checker.active
		level WARN
	}
}

:80 {
	reverse_proxy localhost:5000 localhost:8080 {
    header_up Host {upstream_hostport}
		lb_policy first
		health_uri /healthy
		health_interval 5s
		health_timeout 1s
	}
}

http://localhost:8080 {
	handle /healthy {
		respond 200
	}
	handle {
		root * /var/lib/project/wwwroot-fallback
		header Cache-Control "no-cache, no-store, must-revalidate"
		try_files {path} /index.html
		file_server
	}
}
